egl: Do not do any further ops when context creation fails

Change-Id: I54bf4a720e8d414d310ecdb88f08a9705023aef9
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
bb10
Laszlo Agocs 2015-08-17 12:52:53 +02:00
parent fae725d451
commit ba84e346b8
1 changed files with 2 additions and 1 deletions

View File

@ -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()