Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.6.1, 5.7.0
-
Windows
-
1be4f6c32c9846a2343f94628ba9704cf22ec5b1 (qt/qtbase/5.12)
Description
[Windows]: When calling glGetIntegerv with RESET_NOTIFICATION_STRATEGY_ARB it will fail with GL_INVALID_ENUM on OpenGL 3.0. The reason this occurs is because it is available as an extension from 3.2 and is not in the core profile until 4.0.
Therefore the code in QWindowsOpenGLContextFormat::current(), specifically:
QOpenGLStaticContext::opengl32.glGetIntegerv(RESET_NOTIFICATION_STRATEGY_ARB, &value);
needs to be moved after it can be checked that it would be available.