[Commits] SDL: Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.3 branch.
libsdl.org revision control
commits-owner at libsdl.org
Tue Aug 23 13:49:00 PDT 2011
details: http://hg.libsdl.org/SDL/rev/84d302e859d1
changeset: 5624:84d302e859d1
user: Ryan C. Gordon <icculus at icculus.org>
date: Sun Aug 21 12:24:27 2011 -0400
description:
Fix SDL_GL_ACCELERATED_VISUAL on Windows in the 1.3 branch.
Fixes Bugzilla #1254.
Thanks to Thilo Schulz for the patch!
diffstat:
src/video/windows/SDL_windowsopengl.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (18 lines):
diff -r 08e941dad8e9 -r 84d302e859d1 src/video/windows/SDL_windowsopengl.c
--- 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;
More information about the commits
mailing list