mirror of
https://github.com/yawut/SDL.git
synced 2026-06-20 11:31:41 -05:00
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:
parent
979f801b08
commit
a13987a2cc
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user