comparison src/video/SDL_renderer_gl.c @ 3533:40b9b0177e9a

This fixes the OpenGL rendering test, at least with my ATI card...
author Sam Lantinga <slouken@libsdl.org>
date Mon, 07 Dec 2009 08:02:20 +0000
parents 83518f8fcd61
children 0267b8b1595c
comparison
equal deleted inserted replaced
3532:101f94947013 3533:40b9b0177e9a
1153 * for vertical and horizontal lines, and then create custom textures 1153 * for vertical and horizontal lines, and then create custom textures
1154 * for diagonal lines and software render those. It's terrible, but at 1154 * for diagonal lines and software render those. It's terrible, but at
1155 * least it would be pixel perfect. 1155 * least it would be pixel perfect.
1156 */ 1156 */
1157 data->glBegin(GL_POINTS); 1157 data->glBegin(GL_POINTS);
1158 #ifdef __APPLE__ 1158 #if defined(__APPLE__) || defined(__WIN32__)
1159 /* Mac OS X seems to always leave the second point open */ 1159 /* Mac OS X and Windows seem to always leave the second point open */
1160 data->glVertex2f(0.5f + x2, 0.5f + y2); 1160 data->glVertex2f(0.5f + x2, 0.5f + y2);
1161 #else 1161 #else
1162 /* Linux seems to leave the right-most or bottom-most point open */ 1162 /* Linux seems to leave the right-most or bottom-most point open */
1163 if (x1 > x2) { 1163 if (x1 > x2) {
1164 data->glVertex2f(0.5f + x1, 0.5f + y1); 1164 data->glVertex2f(0.5f + x1, 0.5f + y1);