Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Is there anything opposite to InitializeGL().. something like deleteGl()?
Andrew last edited by
Is there anything which is exactly opposite to InitializeGL()? that we can call..?
Actually I am having particular requirement that on occurrence of an event I should stop drawing in PainGL().
I tried makeCurrent() but it still keeps on drawing, and gives seg-fault in QGLWidget::glDraw() while swapping buffers.
How do I go about it?
I'm not aware of such a function, but you could use a boolean flag to check at the top of paintGL.