diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-08-17 12:52:53 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-08-18 12:32:39 +0000 |
commit | ba84e346b8a3eba6686fa18e1ef546def98073fa (patch) | |
tree | f97e0a88569a1303028da61f3890d1a135b83683 | |
parent | fae725d45183f44fce93826df66e2f1ab2b6fa74 (diff) |
egl: Do not do any further ops when context creation fails
Change-Id: I54bf4a720e8d414d310ecdb88f08a9705023aef9
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
-rw-r--r-- | src/platformsupport/eglconvenience/qeglplatformcontext.cpp | 3 |
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() |