From d8888e468e28a5fce2726b7c8444e5b903981a44 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 15 Nov 2021 08:37:49 +0100 Subject: [PATCH] Fixed bug #4964 - opengles2 & batching = conjoined lines --- src/render/opengles2/SDL_render_gles2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/opengles2/SDL_render_gles2.c b/src/render/opengles2/SDL_render_gles2.c index 1c60d4e5d..45d1eba36 100644 --- a/src/render/opengles2/SDL_render_gles2.c +++ b/src/render/opengles2/SDL_render_gles2.c @@ -1148,7 +1148,7 @@ GLES2_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *ver int ret; while (nextcmd != NULL) { 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. */ } 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. */