changeset 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 6b182cbe38ac
files src/video/SDL_renderer_gl.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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;
 }