egl: Do not do any further ops when context creation fails
Change-Id: I54bf4a720e8d414d310ecdb88f08a9705023aef9 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>bb10
parent
fae725d451
commit
ba84e346b8
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue