From f18a3cc65029edf698eb0f5989b861fdf78aa5c8 Mon Sep 17 00:00:00 2001 From: magumagu Date: Sat, 12 Apr 2014 00:17:36 -0700 Subject: [PATCH] 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. --- Source/Core/VideoBackends/OGL/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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));