From ccef8261d4d005a8666ef2c10b82860602f781b3 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 5 Jan 2015 16:30:28 +0100 Subject: eglfs: Make sure there is a platform window for the backing store MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/platformsupport/eglconvenience/qeglplatformintegration.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/platformsupport') 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(window->handle())->setBackingStore(bs); return bs; } -- cgit v1.2.3