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:
degasus 2014-02-03 16:59:23 +01:00
parent e5318d2624
commit 3cd6918dec

View File

@ -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";