From 9c4b7d5eb203a84ade2c00398a52b3724631927c Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Wed, 19 Sep 2012 16:06:57 +0300 Subject: [PATCH] Fix OpenGL context creation in Windows platform plugin Attribute index was incremented incorrectly. Task-number: QTBUG-27272 Change-Id: Ia7e9c76acc6c9d8208b8ba43131861a3beff6b2c Reviewed-by: Friedemann Kleint --- src/plugins/platforms/windows/qwindowsglcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/windows/qwindowsglcontext.cpp b/src/plugins/platforms/windows/qwindowsglcontext.cpp index 825f65c198..45e344416d 100644 --- a/src/plugins/platforms/windows/qwindowsglcontext.cpp +++ b/src/plugins/platforms/windows/qwindowsglcontext.cpp @@ -575,7 +575,7 @@ static HGLRC createContext(const QOpenGLStaticContext &staticContext, if (format.testOption(QSurfaceFormat::DeprecatedFunctions)) attributes[attribIndex] |= WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB; if (format.testOption(QSurfaceFormat::DebugContext)) - attributes[attribIndex++] |= WGL_CONTEXT_DEBUG_BIT_ARB; + attributes[attribIndex] |= WGL_CONTEXT_DEBUG_BIT_ARB; attribIndex++; } if (requestedVersion >= 0x0302) {