Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug 4825 - SDL Renderer OpenGL: Buffer overflow (SDL_RENDERCMD_…
…DRAW_LINES)
  • Loading branch information
1bsyl committed Oct 13, 2019
1 parent f8bdefe commit 72660a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/render/opengl/SDL_render_gl.c
Expand Up @@ -1210,6 +1210,7 @@ GL_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *vertic
data->glVertex2f(verts[0], verts[1]);
}
data->glEnd();
verts -= 2 * count;

/* The line is half open, so we need one more point to complete it.
* http://www.opengl.org/documentation/specs/version1.1/glspec1.1/node47.html
Expand Down

0 comments on commit 72660a5

Please sign in to comment.