Set atomic flag indicating if main native window is used back to 0 if creation
of EGL window surface fails.
Change-Id: I782419ce2872c87084fe24f40ab7caa7728bb1c7
const eglu::NativeWindowFactory* windowFactory = eglu::selectNativeWindowFactory(m_eglTestCtx.getNativeDisplayFactory(), m_testCtx.getCommandLine());
if (!windowFactory)
- TCU_THROW(NotSupportedError, "Windows nos supported");
+ TCU_THROW(NotSupportedError, "Windows not supported");
if ((m_types & TYPE_SINGLE_WINDOW) != 0)
{
if (surface != EGL_NO_SURFACE)
EGLU_CHECK_CALL(egl, destroySurface(m_display, surface));
delete window;
+ m_hasWindow = 0;
throw;
}
}