Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Include the endpoint in the line we're drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 19, 2009
1 parent e203d63 commit 1f7b78e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/video/SDL_renderer_gl.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1f7b78e

Please sign in to comment.