Fixed bug #4964 - opengles2 & batching = conjoined lines

main
Sylvain 2021-11-15 08:37:49 +01:00
parent 193ab28fe4
commit d8888e468e
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 1 additions and 1 deletions

View File

@ -1148,7 +1148,7 @@ GLES2_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *ver
int ret; int ret;
while (nextcmd != NULL) { while (nextcmd != NULL) {
const SDL_RenderCommandType nextcmdtype = nextcmd->command; const SDL_RenderCommandType nextcmdtype = nextcmd->command;
if (nextcmdtype != thiscmdtype) { if (nextcmdtype != thiscmdtype || thiscmdtype == SDL_RENDERCMD_DRAW_LINES) {
break; /* can't go any further on this draw call, different render command up next. */ break; /* can't go any further on this draw call, different render command up next. */
} else if (nextcmd->data.draw.texture != thistexture || nextcmd->data.draw.blend != thisblend) { } else if (nextcmd->data.draw.texture != thistexture || nextcmd->data.draw.blend != thisblend) {
break; /* can't go any further on this draw call, different texture/blendmode copy up next. */ break; /* can't go any further on this draw call, different texture/blendmode copy up next. */