Skip to content

Commit

Permalink
Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.2 branch.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #1254.

Thanks to Thilo Schulz for the patch!
  • Loading branch information
icculus committed Aug 21, 2011
1 parent 9bd71ea commit b3a813e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/video/wincommon/SDL_wingl.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b3a813e

Please sign in to comment.