Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Include the endpoint in the line we're drawing

  • Loading branch information
slouken committed Nov 19, 2009
1 parent e203d63 commit 1f7b78ee7f0f1f5b376d537999f8cb069b0cba06
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/video/SDL_renderer_gl.c
@@ -1128,6 +1128,11 @@ GL_RenderLine(SDL_Renderer * renderer, int x1, int y1, int x2, int y2)
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;
}

0 comments on commit 1f7b78e

Please sign in to comment.