summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2010-02-23 08:03:48 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2010-02-23 08:03:48 (GMT)
commitac99b3e243b331d26815b80aab97cdaf0ed06b0f (patch)
treef59a8beb7c99c286808ef6df25a44b288fdd3e9a
parent22efbe7d4388787d3a9f2511cbf780d4ccc17c2f (diff)
downloadQt-ac99b3e243b331d26815b80aab97cdaf0ed06b0f.zip
Qt-ac99b3e243b331d26815b80aab97cdaf0ed06b0f.tar.gz
Qt-ac99b3e243b331d26815b80aab97cdaf0ed06b0f.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
-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 d5e7534..0714f73 100644
--- a/src/gui/kernel/qcocoaview_mac.mm
+++ b/src/gui/kernel/qcocoaview_mac.mm
@@ -461,8 +461,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];