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:
parent
e560642e7a
commit
cacb18997b
1 changed files with 1 additions and 3 deletions
|
@ -220,8 +220,6 @@ int WIN_GL_SetupWindow(_THIS)
|
|||
|
||||
*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 @@ int WIN_GL_SetupWindow(_THIS)
|
|||
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue