metal: Fix an incorrect division.
authorAlex Szpakowski <slime73@gmail.com>
Wed, 21 Nov 2018 23:46:37 -0400
changeset 12428f5d2abe5af7f
parent 12427 7508e848e7cf
child 12429 682d6359c430
metal: Fix an incorrect division.
src/render/metal/SDL_render_metal.m
     1.1 --- a/src/render/metal/SDL_render_metal.m	Wed Nov 21 23:37:23 2018 -0400
     1.2 +++ b/src/render/metal/SDL_render_metal.m	Wed Nov 21 23:46:37 2018 -0400
     1.3 @@ -1163,7 +1163,7 @@
     1.4  
     1.5              case SDL_RENDERCMD_FILL_RECTS: {
     1.6                  const size_t count = cmd->data.draw.count;
     1.7 -                const size_t maxcount = UINT16_MAX / 6;
     1.8 +                const size_t maxcount = UINT16_MAX / 4;
     1.9                  SetDrawState(renderer, cmd, SDL_METAL_FRAGMENT_SOLID, CONSTANTS_OFFSET_IDENTITY, mtlbufvertex, &statecache);
    1.10                  /* Our index buffer has 16 bit indices, so we can only draw 65k
    1.11                   * vertices (16k rects) at a time. */