QNX: Ensure that m_requestedBufferSize is properly initialised

This solves a new corner case resulting from the recent refactoring of
QQnxWindow::setGeometry() that occurs when using a plain OpenGL backed
window in a single threaded environment and the user code calls
QOpenGLContext::makeCurrent(this) in the QWindow subclass ctor.

Change-Id: Iaf07fbff1cb2743f5706020a8d657a82cb9f2255
Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com>
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
bb10
Sean Harmer 2012-08-02 13:17:16 +01:00 committed by Qt by Nokia
parent 408af312bc
commit 0715e1e6c2
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ QQnxWindow::QQnxWindow(QWindow *window, screen_context_t context)
m_screen(0),
m_parentWindow(0),
m_visible(true),
m_windowState(Qt::WindowNoState)
m_windowState(Qt::WindowNoState),
m_requestedBufferSize(window->geometry().size())
{
qWindowDebug() << Q_FUNC_INFO << "window =" << window << ", size =" << window->size();
int result;