Correct usage of QOpenGLxxxx bind() and release()
General and Desktop
1
Posts
1
Posters
745
Views
1
Watching
-
wrote on 14 Sept 2015, 11:35 last edited by garfunkheul
Hi,
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?
1/1