summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2010-02-23 08:03:48 (GMT)
committerSamuli Piippo <samuli.piippo@digia.com>2011-06-09 10:04:57 (GMT)
commitfbe6429cd20d403ce1f9570a4426452d2ef49725 (patch)
tree8a339210f66fb5d1992ab6f19ba257db48a86943 /src/gui/kernel
parent880eec22c0269ae0c0433014025c60800eb8cf50 (diff)
downloadQt-fbe6429cd20d403ce1f9570a4426452d2ef49725.zip
Qt-fbe6429cd20d403ce1f9570a4426452d2ef49725.tar.gz
Qt-fbe6429cd20d403ce1f9570a4426452d2ef49725.tar.bz2
Fix GL viewports under -graphicssystem raster.
GL widgets and native controls have paintonscreen set and bypasses backingstore. They can thus not rely on the windowsurface flushing but must be repainted via normal means (cherry picked from commit ac99b3e243b331d26815b80aab97cdaf0ed06b0f)
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qcocoaview_mac.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm
index 653ca8e..2482fb3 100644
--- a/src/gui/kernel/qcocoaview_mac.mm
+++ b/src/gui/kernel/qcocoaview_mac.mm
@@ -522,8 +522,9 @@ extern "C" {
if (QApplicationPrivate::graphicsSystem() != 0) {
if (QWidgetBackingStore *bs = qwidgetprivate->maybeBackingStore()) {
// Drawing is handled on the window level
- // See qcocoasharedwindowmethods_mac_p.
- return;
+ // See qcocoasharedwindowmethods_mac_p.h
+ if (!qwidget->testAttribute(Qt::WA_PaintOnScreen))
+ return;
}
}
CGContextRef cg = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];