diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2010-02-23 08:03:48 (GMT) |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2011-06-09 10:04:57 (GMT) |
commit | fbe6429cd20d403ce1f9570a4426452d2ef49725 (patch) | |
tree | 8a339210f66fb5d1992ab6f19ba257db48a86943 /src/gui/kernel | |
parent | 880eec22c0269ae0c0433014025c60800eb8cf50 (diff) | |
download | Qt-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.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 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]; |