Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.7.0, 5.7.1, 5.8.0 Alpha
-
None
-
Tested on:
- macOS 12.1 in VMware, Apple Software Renderer
- macOS 12.1 on MacBook 2016 Core m7 1.3, Intel HD Graphics 515
Description
When used with a legacy OpenGL 2.1 context on MacOS, QOpenGLFunctions::glClearDepthf seems to use glClearDepthf(GLfloat) even though it is not defined in this version, causing an GL_INVALID_OPERATION OpenGL error when called. Versions prior to Qt 5.7 correctly use glClearDepth(GLdouble) as fallback instead.
On Windows/Linux this seems to work correctly, but I get a 4.1 compatibility context there when I ask for 2.1, so I am not 100% sure it is not an issue there.
Example program attached.
Attachments
Issue Links
- is duplicated by
-
QTBUG-57490 GL_INVALID_OPERATION in QSGNode dtor on macOS
- Closed
-
QTBUG-54612 OpenGL error on MacOSX with Qt5.7
- Closed