Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.2 branch.

Fixes Bugzilla #1254.

Thanks to Thilo Schulz for the patch!

--HG--
branch : SDL-1.2
This commit is contained in:
Ryan C. Gordon 2011-08-21 12:21:01 -04:00
parent e560642e7a
commit cacb18997b

View file

@ -220,8 +220,6 @@ int WIN_GL_SetupWindow(_THIS)
*iAttr++ = WGL_DRAW_TO_WINDOW_ARB; *iAttr++ = WGL_DRAW_TO_WINDOW_ARB;
*iAttr++ = GL_TRUE; *iAttr++ = GL_TRUE;
*iAttr++ = WGL_ACCELERATION_ARB;
*iAttr++ = WGL_FULL_ACCELERATION_ARB;
*iAttr++ = WGL_RED_BITS_ARB; *iAttr++ = WGL_RED_BITS_ARB;
*iAttr++ = this->gl_config.red_size; *iAttr++ = this->gl_config.red_size;
*iAttr++ = WGL_GREEN_BITS_ARB; *iAttr++ = WGL_GREEN_BITS_ARB;
@ -282,7 +280,7 @@ int WIN_GL_SetupWindow(_THIS)
if ( this->gl_config.accelerated >= 0 ) { if ( this->gl_config.accelerated >= 0 ) {
*iAttr++ = WGL_ACCELERATION_ARB; *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; *iAttr = 0;