Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.2 branch. SDL-1.2
authorRyan C. Gordon
Sun, 21 Aug 2011 12:21:01 -0400
branchSDL-1.2
changeset 5623181d53fc4e23
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
     1.1 --- a/src/video/wincommon/SDL_wingl.c	Sun Aug 21 11:42:47 2011 -0400
     1.2 +++ b/src/video/wincommon/SDL_wingl.c	Sun Aug 21 12:21:01 2011 -0400
     1.3 @@ -220,8 +220,6 @@
     1.4  
     1.5  	*iAttr++ = WGL_DRAW_TO_WINDOW_ARB;
     1.6  	*iAttr++ = GL_TRUE;
     1.7 -	*iAttr++ = WGL_ACCELERATION_ARB;
     1.8 -	*iAttr++ = WGL_FULL_ACCELERATION_ARB;
     1.9  	*iAttr++ = WGL_RED_BITS_ARB;
    1.10  	*iAttr++ = this->gl_config.red_size;
    1.11  	*iAttr++ = WGL_GREEN_BITS_ARB;
    1.12 @@ -282,7 +280,7 @@
    1.13  
    1.14  	if ( this->gl_config.accelerated >= 0 ) {
    1.15  		*iAttr++ = WGL_ACCELERATION_ARB;
    1.16 -		*iAttr++ = (this->gl_config.accelerated ? WGL_GENERIC_ACCELERATION_ARB : WGL_NO_ACCELERATION_ARB);
    1.17 +		*iAttr++ = (this->gl_config.accelerated ? WGL_FULL_ACCELERATION_ARB : WGL_NO_ACCELERATION_ARB);
    1.18  	}
    1.19  
    1.20  	*iAttr = 0;