summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoConfig.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-12-20 19:54:00 +0100
committerdegasus <wickmarkus@web.de>2014-12-20 19:54:00 +0100
commita858db1d27b7b7c36dc4bc6722c29ce3e90c591b (patch)
tree5d355296d2c93c0a560b4a1e6b9176526fbf5197 /Source/Core/VideoCommon/VideoConfig.cpp
parented9c14e0d5ba9b73b4ab4fa30d7d80ad49c5ead4 (diff)
OGL: move osd warning for not supported stereo mode into config validation
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoConfig.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp
index 63f55ba612..d4cff3ec42 100644
--- a/Source/Core/VideoCommon/VideoConfig.cpp
+++ b/Source/Core/VideoCommon/VideoConfig.cpp
@@ -216,7 +216,12 @@ void VideoConfig::VerifyValidity()
// TODO: Check iMaxAnisotropy value
if (iAdapter < 0 || iAdapter > ((int)backend_info.Adapters.size() - 1)) iAdapter = 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)