This fixes the OpenGL rendering test, at least with my ATI card...
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404276
This commit is contained in:
parent
ea76da001c
commit
5d686e407c
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue