diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2010-02-23 08:03:48 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2010-02-23 08:03:48 (GMT) |
commit | ac99b3e243b331d26815b80aab97cdaf0ed06b0f (patch) | |
tree | f59a8beb7c99c286808ef6df25a44b288fdd3e9a | |
parent | 22efbe7d4388787d3a9f2511cbf780d4ccc17c2f (diff) | |
download | Qt-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.mm | 5 |
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]; |