summaryrefslogtreecommitdiff
path: root/src/py/cam/cam_qtgl.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/py/cam/cam_qtgl.py')
-rw-r--r--src/py/cam/cam_qtgl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/py/cam/cam_qtgl.py b/src/py/cam/cam_qtgl.py
index 261accb8..4bbcda6c 100644
--- a/src/py/cam/cam_qtgl.py
+++ b/src/py/cam/cam_qtgl.py
@@ -268,7 +268,8 @@ class MainWindow(QtWidgets.QWidget):
def create_texture(self, stream, fb):
cfg = stream.configuration
fmt = cfg.pixel_format.fourcc
- w, h = cfg.size
+ w = cfg.size.width
+ h = cfg.size.height
attribs = [
EGL_WIDTH, w,