Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.2 branch. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sun, 21 Aug 2011 12:21:01 -0400
branchSDL-1.2
changeset 5623 181d53fc4e23
parent 5621 8b2b7f4009e5
child 5626 5d3431bad5c7
Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.2 branch. Fixes Bugzilla #1254. Thanks to Thilo Schulz for the patch!
src/video/wincommon/SDL_wingl.c
--- a/src/video/wincommon/SDL_wingl.c	Sun Aug 21 11:42:47 2011 -0400
+++ b/src/video/wincommon/SDL_wingl.c	Sun Aug 21 12:21:01 2011 -0400
@@ -220,8 +220,6 @@
 
 	*iAttr++ = WGL_DRAW_TO_WINDOW_ARB;
 	*iAttr++ = GL_TRUE;
-	*iAttr++ = WGL_ACCELERATION_ARB;
-	*iAttr++ = WGL_FULL_ACCELERATION_ARB;
 	*iAttr++ = WGL_RED_BITS_ARB;
 	*iAttr++ = this->gl_config.red_size;
 	*iAttr++ = WGL_GREEN_BITS_ARB;
@@ -282,7 +280,7 @@
 
 	if ( this->gl_config.accelerated >= 0 ) {
 		*iAttr++ = WGL_ACCELERATION_ARB;
-		*iAttr++ = (this->gl_config.accelerated ? WGL_GENERIC_ACCELERATION_ARB : WGL_NO_ACCELERATION_ARB);
+		*iAttr++ = (this->gl_config.accelerated ? WGL_FULL_ACCELERATION_ARB : WGL_NO_ACCELERATION_ARB);
 	}
 
 	*iAttr = 0;