summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDyami Caliri <dyami@dragonframe.com>2016-01-23 11:22:09 -0800
committerDyami Caliri <dyami@dragonframe.com>2016-01-24 18:26:27 +0000
commit5cac511908bc67b86e29b31350619488906a55a2 (patch)
tree97b7dcd3ceac8adba8a871c6b08164c2a79a25d4
parentc820692fc036698a29412f26add0fad1dfc1d4a3 (diff)
Repaint QOpenGLWidget when screen changes
Commit 5c7f000cd4c9e3769e8cd4085cf0beee104f9886 greatly reduces the number of repaints for QOpenGLWidget. Unfortunately, this included when the widget changes screens. Change-Id: Iaabcb94925e4519cb5d8561b47aaddcfdc7b01ac Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-rw-r--r--src/widgets/kernel/qwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
index b2b5c539e5..5bff30524a 100644
--- a/src/widgets/kernel/qwidget.cpp
+++ b/src/widgets/kernel/qwidget.cpp
@@ -9146,6 +9146,9 @@ bool QWidget::event(QEvent *event)
const QWindow *win = te->window;
d->setWinId((win && win->handle()) ? win->handle()->winId() : 0);
}
+#ifndef QT_NO_OPENGL
+ d->renderToTextureReallyDirty = 1;
+#endif
break;
#ifndef QT_NO_PROPERTIES
case QEvent::DynamicPropertyChange: {