OGL: Display the stereoscopy support warning before the stereo setting is reset.

Previously the message would never display, because stereoscopy would be turned off before the warning.
This commit is contained in:
Jules Blok 2014-11-24 13:19:34 +01:00
parent a04edbcb9a
commit 145e0cc84c
1 changed files with 3 additions and 3 deletions

View File

@ -563,6 +563,9 @@ Renderer::Renderer()
bSuccess = false; bSuccess = false;
} }
if (g_Config.iStereoMode > 0 && !g_Config.backend_info.bSupportsStereoscopy)
OSD::AddMessage("Stereoscopic 3D isn't supported by your GPU, support for OpenGL 3.2 is required.", 10000);
if (!bSuccess) if (!bSuccess)
{ {
// Not all needed extensions are supported, so we have to stop here. // Not all needed extensions are supported, so we have to stop here.
@ -582,9 +585,6 @@ Renderer::Renderer()
g_ogl_config.gl_renderer, g_ogl_config.gl_renderer,
g_ogl_config.gl_version), 5000); g_ogl_config.gl_version), 5000);
if (g_Config.iStereoMode > 0 && !g_Config.backend_info.bSupportsStereoscopy)
OSD::AddMessage("Stereoscopic 3D isn't supported by your GPU, support for OpenGL 3.2 is required.", 10000);
WARN_LOG(VIDEO,"Missing OGL Extensions: %s%s%s%s%s%s%s%s%s%s%s", WARN_LOG(VIDEO,"Missing OGL Extensions: %s%s%s%s%s%s%s%s%s%s%s",
g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "" : "DualSourceBlend ", g_ActiveConfig.backend_info.bSupportsDualSourceBlend ? "" : "DualSourceBlend ",
g_ActiveConfig.backend_info.bSupportsPrimitiveRestart ? "" : "PrimitiveRestart ", g_ActiveConfig.backend_info.bSupportsPrimitiveRestart ? "" : "PrimitiveRestart ",