Fixed bug #4964 - opengles2 & batching = conjoined lines
parent
193ab28fe4
commit
d8888e468e
|
@ -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. */
|
||||||
|
|
Loading…
Reference in New Issue