fix ogl video config crash
This will happen when playing on any other backend than ogl which have a non-trival GLInterface::GetMode() method.
This commit is contained in:
parent
e5318d2624
commit
3cd6918dec
|
@ -97,7 +97,7 @@ std::string VideoBackend::GetName()
|
|||
|
||||
std::string VideoBackend::GetDisplayName()
|
||||
{
|
||||
if (g_renderer && GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGLES3)
|
||||
if (GLInterface != nullptr && GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGLES3)
|
||||
return "OpenGLES";
|
||||
else
|
||||
return "OpenGL";
|
||||
|
|
Loading…
Reference in New Issue