Skip to content

Commit

Permalink
OpenGL config: clear backend_info.Adapters on init
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
magumagu committed Apr 12, 2014
1 parent b106dbc commit f18a3cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/VideoBackends/OGL/main.cpp
Expand Up @@ -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));
Expand Down

0 comments on commit f18a3cc

Please sign in to comment.