Fix NoContext error because buffer swap thread fires after it is awaited
This commit is contained in:
parent
078e9baf6d
commit
2be029047a
@ -195,8 +195,8 @@ class WorldView(QGLWidget):
|
|||||||
|
|
||||||
def dealloc(self):
|
def dealloc(self):
|
||||||
log.info("Deallocating GL resources for worldview %s", self)
|
log.info("Deallocating GL resources for worldview %s", self)
|
||||||
self.bufferSwapThread.quit()
|
|
||||||
self.waitForSwapThread()
|
self.waitForSwapThread()
|
||||||
|
self.bufferSwapThread.quit()
|
||||||
self.makeCurrent()
|
self.makeCurrent()
|
||||||
self.renderGraph.dealloc()
|
self.renderGraph.dealloc()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user