Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Correct usage of QOpenGLxxxx bind() and release()
garfunkheul last edited by garfunkheul
I saw into QOpenGL examples two different ways to bind/release QOpenGL objects:
The first one, bind() a QOpenGLShaderProgram at the beginning of paintGL() and releases it at the end.
The second one bind() the QOpenGLShaderProgram init initializeGL() and never releases it.
So which implementation is the good one?
What about QOpenGLTexture? Do I need to release() once it has been bound?