Attribute index was incremented incorrectly.
Task-number: QTBUG-27272
Change-Id: Ia7e9c76acc6c9d8208b8ba43131861a3beff6b2c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
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) {