Mercurial > sdl-ios-xcode
diff src/video/SDL_renderer_gl.c @ 3455:5a7b5760c875
Include the endpoint in the line we're drawing
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 19 Nov 2009 04:59:19 +0000 |
parents | 77366fae0094 |
children | 06e948183b59 |
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c Thu Nov 19 04:33:35 2009 +0000 +++ b/src/video/SDL_renderer_gl.c Thu Nov 19 04:59:19 2009 +0000 @@ -1128,6 +1128,11 @@ data->glVertex2f(0.5f + x2, 0.5f + y2); data->glEnd(); + /* For some reason the second endpoint is skipped */ + data->glBegin(GL_POINTS); + data->glVertex2f(0.5f + x2, 0.5f + y2); + data->glEnd(); + return 0; }