Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
metal: Fix an incorrect division.
  • Loading branch information
slime73 committed Nov 22, 2018
1 parent 4a58722 commit 872936a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/metal/SDL_render_metal.m
Expand Up @@ -1163,7 +1163,7 @@ - (void)dealloc

case SDL_RENDERCMD_FILL_RECTS: {
const size_t count = cmd->data.draw.count;
const size_t maxcount = UINT16_MAX / 6;
const size_t maxcount = UINT16_MAX / 4;
SetDrawState(renderer, cmd, SDL_METAL_FRAGMENT_SOLID, CONSTANTS_OFFSET_IDENTITY, mtlbufvertex, &statecache);
/* Our index buffer has 16 bit indices, so we can only draw 65k
* vertices (16k rects) at a time. */
Expand Down

0 comments on commit 872936a

Please sign in to comment.