Fix NoContext error because buffer swap thread fires after it is awaited

This commit is contained in:
David Vierra 2016-02-06 23:01:21 -10:00
parent 078e9baf6d
commit 2be029047a

View File

@ -195,8 +195,8 @@ class WorldView(QGLWidget):
def dealloc(self):
log.info("Deallocating GL resources for worldview %s", self)
self.bufferSwapThread.quit()
self.waitForSwapThread()
self.bufferSwapThread.quit()
self.makeCurrent()
self.renderGraph.dealloc()