From c1ccf6922637952f749cc2d67fbc07f9ab340b33 Mon Sep 17 00:00:00 2001 From: Morten Sorvig Date: Wed, 24 Aug 2011 08:13:44 +0200 Subject: Cocoa: Fix qmlscene flicker on resize. Update the GL context before sending the geometry change event to Qt. Change-Id: If331bfcc7f7b0fd4f2f24d4445c8197ec6af688f Reviewed-on: http://codereview.qt.nokia.com/3448 Reviewed-by: Qt Sanity Bot Reviewed-by: Richard Moe Gustavsen --- src/plugins/platforms/cocoa/qcocoawindow.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/platforms') diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm index e594514383..b7d7bd83bc 100644 --- a/src/plugins/platforms/cocoa/qcocoawindow.mm +++ b/src/plugins/platforms/cocoa/qcocoawindow.mm @@ -179,12 +179,12 @@ void QCocoaWindow::windowDidMove() void QCocoaWindow::windowDidResize() { + if (m_glContext) + m_glContext->update(); + NSRect rect = [[m_nsWindow contentView]frame]; QRect geo(rect.origin.x,rect.origin.y,rect.size.width,rect.size.height); QWindowSystemInterface::handleSynchronousGeometryChange(window(), geo); - - if (m_glContext) - m_glContext->update(); } -- cgit v1.2.3