remove unneeded call to makeCurrent()

in any case, context will not be valid until the widget is shown.
This commit is contained in:
KIU Shueng Chuan 2021-07-17 13:32:33 +08:00
parent 1814ff535d
commit fab505a431

View File

@ -54,8 +54,6 @@ class GLViewWidget(QtWidgets.QOpenGLWidget):
self.keysPressed = {}
self.keyTimer = QtCore.QTimer()
self.keyTimer.timeout.connect(self.evalKeyState)
self.makeCurrent()
def _updateScreen(self, screen):
self._updatePixelRatio()