BlackBerry: fix delayed root window posting on OpenGL

The delayed root window posting introduced by
77a06e7e6c 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>
This commit is contained in:
Rafael Roquetto 2013-06-03 15:09:12 -03:00 committed by The Qt Project
parent 46667d604f
commit 6a9333841d

View File

@ -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();