OGL: move osd warning for not supported stereo mode into config validation
This commit is contained in:
parent
ed9c14e0d5
commit
a858db1d27
|
@ -556,9 +556,6 @@ Renderer::Renderer()
|
||||||
bSuccess = false;
|
bSuccess = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_Config.iStereoMode > 0 && !g_Config.backend_info.bSupportsGeometryShaders)
|
|
||||||
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.
|
||||||
|
|
|
@ -216,7 +216,12 @@ void VideoConfig::VerifyValidity()
|
||||||
// TODO: Check iMaxAnisotropy value
|
// TODO: Check iMaxAnisotropy value
|
||||||
if (iAdapter < 0 || iAdapter > ((int)backend_info.Adapters.size() - 1)) iAdapter = 0;
|
if (iAdapter < 0 || iAdapter > ((int)backend_info.Adapters.size() - 1)) iAdapter = 0;
|
||||||
if (iMultisampleMode < 0 || iMultisampleMode >= (int)backend_info.AAModes.size()) iMultisampleMode = 0;
|
if (iMultisampleMode < 0 || iMultisampleMode >= (int)backend_info.AAModes.size()) iMultisampleMode = 0;
|
||||||
if (!backend_info.bSupportsGeometryShaders) iStereoMode = 0;
|
|
||||||
|
if (iStereoMode > 0 && !backend_info.bSupportsGeometryShaders)
|
||||||
|
{
|
||||||
|
OSD::AddMessage("Stereoscopic 3D isn't supported by your GPU, support for OpenGL 3.2 is required.", 10000);
|
||||||
|
iStereoMode = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoConfig::Save(const std::string& ini_file)
|
void VideoConfig::Save(const std::string& ini_file)
|
||||||
|
|
Loading…
Reference in New Issue