Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.3 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 cb5df71 commit 689a0f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/video/windows/SDL_windowsopengl.c
Expand Up @@ -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;

Expand Down

0 comments on commit 689a0f5

Please sign in to comment.