summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/eglconvenience/qeglplatformintegration.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-01-05 16:30:28 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-01-06 15:01:53 +0100
commitccef8261d4d005a8666ef2c10b82860602f781b3 (patch)
tree603295a6e3276673cb5aaa35f9977cf233fc6cf5 /src/platformsupport/eglconvenience/qeglplatformintegration.cpp
parent5b4f875e129369d92af2e6d9e9eeef019ce10cd1 (diff)
eglfs: Make sure there is a platform window for the backing store
Some example code creates the backing store before the platform window. Make this case working by calling create(). Task-number: QTBUG-43543 Change-Id: I29c260f38eddd15ea09931e814c5dbd031b65505 Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/platformsupport/eglconvenience/qeglplatformintegration.cpp')
-rw-r--r--src/platformsupport/eglconvenience/qeglplatformintegration.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platformsupport/eglconvenience/qeglplatformintegration.cpp b/src/platformsupport/eglconvenience/qeglplatformintegration.cpp
index 09011e6e58..e2a215d35f 100644
--- a/src/platformsupport/eglconvenience/qeglplatformintegration.cpp
+++ b/src/platformsupport/eglconvenience/qeglplatformintegration.cpp
@@ -142,6 +142,8 @@ QPlatformFontDatabase *QEGLPlatformIntegration::fontDatabase() const
QPlatformBackingStore *QEGLPlatformIntegration::createPlatformBackingStore(QWindow *window) const
{
QOpenGLCompositorBackingStore *bs = new QOpenGLCompositorBackingStore(window);
+ if (!window->handle())
+ window->create();
static_cast<QEGLPlatformWindow *>(window->handle())->setBackingStore(bs);
return bs;
}