Commit 5d686e40 authored by Sam Lantinga's avatar Sam Lantinga

This fixes the OpenGL rendering test, at least with my ATI card...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404276
parent ea76da00
...@@ -1155,8 +1155,8 @@ GL_RenderLine(SDL_Renderer * renderer, int x1, int y1, int x2, int y2) ...@@ -1155,8 +1155,8 @@ GL_RenderLine(SDL_Renderer * renderer, int x1, int y1, int x2, int y2)
* least it would be pixel perfect. * least it would be pixel perfect.
*/ */
data->glBegin(GL_POINTS); data->glBegin(GL_POINTS);
#ifdef __APPLE__ #if defined(__APPLE__) || defined(__WIN32__)
/* Mac OS X seems to always leave the second point open */ /* Mac OS X and Windows seem to always leave the second point open */
data->glVertex2f(0.5f + x2, 0.5f + y2); data->glVertex2f(0.5f + x2, 0.5f + y2);
#else #else
/* Linux seems to leave the right-most or bottom-most point open */ /* Linux seems to leave the right-most or bottom-most point open */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment