mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-02 08:22:43 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ std::string VideoBackend::GetName()
|
||||||
|
|
||||||
std::string VideoBackend::GetDisplayName()
|
std::string VideoBackend::GetDisplayName()
|
||||||
{
|
{
|
||||||
if (g_renderer && GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGLES3)
|
if (GLInterface != nullptr && GLInterface->GetMode() == GLInterfaceMode::MODE_OPENGLES3)
|
||||||
return "OpenGLES";
|
return "OpenGLES";
|
||||||
else
|
else
|
||||||
return "OpenGL";
|
return "OpenGL";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue