|
@@ -1205,7 +1205,7 @@ GLES2_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *ver
|
|
|
break; /* can't go any further on this draw call, different blendmode copy up next. */
|
|
|
} else {
|
|
|
finalcmd = nextcmd; /* we can combine copy operations here. Mark this one as the furthest okay command. */
|
|
|
- count += cmd->data.draw.count;
|
|
|
+ count += nextcmd->data.draw.count;
|
|
|
}
|
|
|
nextcmd = nextcmd->next;
|
|
|
}
|
|
@@ -1236,7 +1236,7 @@ GLES2_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *ver
|
|
|
break; /* can't go any further on this draw call, different texture/blendmode copy up next. */
|
|
|
} else {
|
|
|
finalcmd = nextcmd; /* we can combine copy operations here. Mark this one as the furthest okay command. */
|
|
|
- count += cmd->data.draw.count;
|
|
|
+ count += nextcmd->data.draw.count;
|
|
|
}
|
|
|
nextcmd = nextcmd->next;
|
|
|
}
|