summaryrefslogtreecommitdiffstats
path: root/examples/opengl/hellogl/glwidget.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-07-28 20:18:35 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-07-31 18:35:39 +0200
commit770f9140831ed174fa8f97b1cadcd854e4488310 (patch)
tree3cd95727a770e688a02b428ecedb960eb7d2f03f /examples/opengl/hellogl/glwidget.cpp
parentb48febd568537793405bc103fb0f1eb65ef9ebdc (diff)
Make hellogl work properly regardless of vsync
Task-number: QTBUG-39370 Change-Id: I5b7acb8367f18bfa9318c292657ff7fa0f21f664 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'examples/opengl/hellogl/glwidget.cpp')
-rw-r--r--examples/opengl/hellogl/glwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/opengl/hellogl/glwidget.cpp b/examples/opengl/hellogl/glwidget.cpp
index 29879fa804..3a9faaca5f 100644
--- a/examples/opengl/hellogl/glwidget.cpp
+++ b/examples/opengl/hellogl/glwidget.cpp
@@ -100,7 +100,7 @@ void GLWidget::setXRotation(int angle)
if (angle != xRot) {
xRot = angle;
emit xRotationChanged(angle);
- updateGL();
+ update();
}
}
//! [5]
@@ -111,7 +111,7 @@ void GLWidget::setYRotation(int angle)
if (angle != yRot) {
yRot = angle;
emit yRotationChanged(angle);
- updateGL();
+ update();
}
}
@@ -121,7 +121,7 @@ void GLWidget::setZRotation(int angle)
if (angle != zRot) {
zRot = angle;
emit zRotationChanged(angle);
- updateGL();
+ update();
}
}