Fix rasterwindow example

At least with the eglfs platform plugin, the QBackingStore constructor
results in a null pointer access if done before creation.

Change-Id: I2e78e70700fa48499a35c55797e1b962b6e6285a
Reviewed-by: Rebecca Worledge <rebecca.worledge@theqtcompany.com>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
Jake Petroules 2016-07-05 11:52:59 -07:00 committed by Simon Hausmann
parent 9c8a8e90a6
commit 47511046a4

View File

@ -45,8 +45,8 @@ RasterWindow::RasterWindow(QWindow *parent)
: QWindow(parent)
, m_update_pending(false)
{
m_backingStore = new QBackingStore(this);
create();
m_backingStore = new QBackingStore(this);
setGeometry(100, 100, 300, 200);