From b3a813eadb161543b8f64676b814a15d6a7e346e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 21 Aug 2011 12:21:01 -0400 Subject: [PATCH] Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.2 branch. Fixes Bugzilla #1254. Thanks to Thilo Schulz for the patch! --- src/video/wincommon/SDL_wingl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/video/wincommon/SDL_wingl.c b/src/video/wincommon/SDL_wingl.c index 626bca542..14a4ee031 100644 --- a/src/video/wincommon/SDL_wingl.c +++ b/src/video/wincommon/SDL_wingl.c @@ -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;