Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.3 branch.

Fixes Bugzilla #1254.

Thanks to Thilo Schulz for the patch!
This commit is contained in:
Ryan C. Gordon 2011-08-21 12:24:27 -04:00
parent 98babc2004
commit f9268ec876

View file

@ -466,9 +466,11 @@ WIN_GL_SetupWindow(_THIS, SDL_Window * window)
*iAttr++ = _this->gl_config.multisamplesamples;
}
*iAttr++ = WGL_ACCELERATION_ARB;
*iAttr++ = (_this->gl_config.accelerated ? WGL_FULL_ACCELERATION_ARB :
WGL_NO_ACCELERATION_ARB);
if ( this->gl_config.accelerated >= 0 ) {
*iAttr++ = WGL_ACCELERATION_ARB;
*iAttr++ = (_this->gl_config.accelerated ? WGL_FULL_ACCELERATION_ARB :
WGL_NO_ACCELERATION_ARB);
}
*iAttr = 0;