Include the endpoint in the line we're drawing
authorSam Lantinga <slouken@libsdl.org>
Thu, 19 Nov 2009 04:59:19 +0000
changeset 3455 5a7b5760c875
parent 3454 77366fae0094
child 3456 6b182cbe38ac
Include the endpoint in the line we're drawing
src/video/SDL_renderer_gl.c
--- 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;
 }