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

Commit

Permalink
This fixes the OpenGL rendering test, at least with my ATI card...
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 7, 2009
1 parent ef30345 commit 22c85dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/SDL_renderer_gl.c
Expand Up @@ -1155,8 +1155,8 @@ GL_RenderLine(SDL_Renderer * renderer, int x1, int y1, int x2, int y2)
* least it would be pixel perfect.
*/
data->glBegin(GL_POINTS);
#ifdef __APPLE__
/* Mac OS X seems to always leave the second point open */
#if defined(__APPLE__) || defined(__WIN32__)
/* Mac OS X and Windows seem to always leave the second point open */
data->glVertex2f(0.5f + x2, 0.5f + y2);
#else
/* Linux seems to leave the right-most or bottom-most point open */
Expand Down

0 comments on commit 22c85dd

Please sign in to comment.