src/video/windows/SDL_windowsopengl.c
changeset 5624 84d302e859d1
parent 5535 96594ac5fd1a
child 5644 f74f1a736dd9
--- a/src/video/windows/SDL_windowsopengl.c	Sun Aug 21 11:52:21 2011 -0400
+++ b/src/video/windows/SDL_windowsopengl.c	Sun Aug 21 12:24:27 2011 -0400
@@ -466,9 +466,11 @@
         *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;