Changing this back, and prefixing the other raw GL calls with the following fixed OpenGL on Qt 5.7

mGlContext.data()->functions()->

October 25, 2016, 23:42by DerManu

Thanks for your feedback, I had a similar report recently.

It'll probably end up being a conditional depending on Qt version. Unforunately that's quite inconsistent: on some systems directly calling glClear works fine, in other instances you need to go through QOpenGLFunctions, and again in others (e.g. Qt5.0-5.2) glClear is missing completely from QOpenGLFunctions.

March 24, 2017, 11:14by Michael

For those coming across this, this solved it for me.

(It worked in profile and release, but not in debug for some reason. Qt 5.8)

your_project.pro
Add:

LIBS += -lOpenGL32

Non source code content of this website is licensed under creative commons license by-nc-sa.
Source codes and Software are licensed under the GNU GPL except as noted otherwise.