Skip to content

Commit

Permalink
small fix for egl interface mode detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinob committed Nov 6, 2019
1 parent 127d38c commit d6e3623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Common/GL/GLInterface/EGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ void* cInterfaceEGL::GetFuncAddress(const std::string& name)

void cInterfaceEGL::DetectMode()
{
if (s_opengl_mode != GLInterfaceMode::MODE_DETECT)
return;
bool preferGLES = Config::Get(Config::GFX_PREFER_GLES);
if (s_opengl_mode != GLInterfaceMode::MODE_DETECT && !preferGLES)
return;

EGLint num_configs;
bool supportsGL = false, supportsGLES2 = false, supportsGLES3 = false;
Expand Down

0 comments on commit d6e3623

Please sign in to comment.