summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxglcontext.cpp
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>2013-06-03 15:09:12 -0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-14 10:09:01 +0200
commit6a9333841d9d5233b0457ec6f0da5bdacda8ea5b (patch)
tree66d5732dd223b69d2ca2a94996962f5ebd10cdaa /src/plugins/platforms/qnx/qqnxglcontext.cpp
parent46667d604fb2ae11a87c0c075a3d2468d02f7bdb (diff)
BlackBerry: fix delayed root window posting on OpenGL
The delayed root window posting introduced by 77a06e7e6c517003 broke the OpenGL support. In that patch, the posting of the root window is trigerred by QQnxRasterRasterBackingStore's call to QQnxWindow::post(), that obviously does not happen when OpenGL is enabled, therefore requiring the OpenGL context to explicitly post() the root window. Change-Id: Ifd302c1dde612a03b79c778ec4586aa70f88260d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxglcontext.cpp')
-rw-r--r--src/plugins/platforms/qnx/qqnxglcontext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxglcontext.cpp b/src/plugins/platforms/qnx/qqnxglcontext.cpp
index 005b6d272a..ed959467ff 100644
--- a/src/plugins/platforms/qnx/qqnxglcontext.cpp
+++ b/src/plugins/platforms/qnx/qqnxglcontext.cpp
@@ -315,6 +315,9 @@ void QQnxGLContext::createSurface(QPlatformSurface *surface)
}
platformWindow->setBufferSize(surfaceSize);
+ // Post root window, in case it hasn't been posted yet, to make it appear.
+ platformWindow->screen()->onWindowPost(platformWindow);
+
// Obtain the native handle for our window
screen_window_t handle = platformWindow->nativeHandle();