remove unneeded call to makeCurrent()
in any case, context will not be valid until the widget is shown.
This commit is contained in:
parent
1814ff535d
commit
fab505a431
@ -54,8 +54,6 @@ class GLViewWidget(QtWidgets.QOpenGLWidget):
|
|||||||
self.keysPressed = {}
|
self.keysPressed = {}
|
||||||
self.keyTimer = QtCore.QTimer()
|
self.keyTimer = QtCore.QTimer()
|
||||||
self.keyTimer.timeout.connect(self.evalKeyState)
|
self.keyTimer.timeout.connect(self.evalKeyState)
|
||||||
self.makeCurrent()
|
|
||||||
|
|
||||||
|
|
||||||
def _updateScreen(self, screen):
|
def _updateScreen(self, screen):
|
||||||
self._updatePixelRatio()
|
self._updatePixelRatio()
|
||||||
|
Loading…
Reference in New Issue
Block a user