summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authormagumagu <magumagu9@gmail.com>2014-04-12 00:17:36 -0700
committermagumagu <magumagu9@gmail.com>2014-04-12 00:17:36 -0700
commitf18a3cc65029edf698eb0f5989b861fdf78aa5c8 (patch)
treec989a04e650f822d4ba489fbc356ec5d6e1fc8ca /Source/Core
parentb106dbc96e5fc0933f8ae5e1d655453efd419100 (diff)
OpenGL config: clear backend_info.Adapters on init
Fixes a minor UI glitch where if you switch from Direct3D to OpenGL, the OpenGL config page would appear to have an adapter choice available.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoBackends/OGL/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/OGL/main.cpp b/Source/Core/VideoBackends/OGL/main.cpp
index 2daf59e0d6..accae374b6 100644
--- a/Source/Core/VideoBackends/OGL/main.cpp
+++ b/Source/Core/VideoBackends/OGL/main.cpp
@@ -150,6 +150,8 @@ void InitBackendInfo()
//g_Config.backend_info.bSupportsEarlyZ = true; // is gpu dependent and must be set in renderer
g_Config.backend_info.bSupportsOversizedViewports = true;
+ g_Config.backend_info.Adapters.clear();
+
// aamodes
const char* caamodes[] = {_trans("None"), "2x", "4x", "8x", "8x CSAA", "8xQ CSAA", "16x CSAA", "16xQ CSAA", "4x SSAA"};
g_Config.backend_info.AAModes.assign(caamodes, caamodes + sizeof(caamodes)/sizeof(*caamodes));