summaryrefslogtreecommitdiffstats
path: root/src/platformsupport
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-08-17 12:52:53 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-08-18 12:32:39 +0000
commitba84e346b8a3eba6686fa18e1ef546def98073fa (patch)
treef97e0a88569a1303028da61f3890d1a135b83683 /src/platformsupport
parentfae725d45183f44fce93826df66e2f1ab2b6fa74 (diff)
egl: Do not do any further ops when context creation fails
Change-Id: I54bf4a720e8d414d310ecdb88f08a9705023aef9 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/platformsupport')
-rw-r--r--src/platformsupport/eglconvenience/qeglplatformcontext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp
index 6d9f9e4ae0..5bee29afef 100644
--- a/src/platformsupport/eglconvenience/qeglplatformcontext.cpp
+++ b/src/platformsupport/eglconvenience/qeglplatformcontext.cpp
@@ -240,7 +240,8 @@ void QEGLPlatformContext::adopt(const QVariant &nativeHandle, QPlatformOpenGLCon
void QEGLPlatformContext::initialize()
{
- updateFormatFromGL();
+ if (m_eglContext != EGL_NO_CONTEXT)
+ updateFormatFromGL();
}
EGLSurface QEGLPlatformContext::createTemporaryOffscreenSurface()