Fixed bug 4825 - SDL Renderer OpenGL: Buffer overflow (SDL_RENDERCMD_DRAW_LINES)
parent
f8bdefe1b5
commit
72660a51dd
|
@ -1210,6 +1210,7 @@ GL_RunCommandQueue(SDL_Renderer * renderer, SDL_RenderCommand *cmd, void *vertic
|
||||||
data->glVertex2f(verts[0], verts[1]);
|
data->glVertex2f(verts[0], verts[1]);
|
||||||
}
|
}
|
||||||
data->glEnd();
|
data->glEnd();
|
||||||
|
verts -= 2 * count;
|
||||||
|
|
||||||
/* The line is half open, so we need one more point to complete it.
|
/* 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
|
* http://www.opengl.org/documentation/specs/version1.1/glspec1.1/node47.html
|
||||||
|
|
Loading…
Reference in New Issue