OGL: Fix crash when opening graphics window on another backend

This commit is contained in:
Stenzek
2018-11-07 21:20:12 +10:00
parent 3d61b1a1d5
commit 7efdd1070b
3 changed files with 3 additions and 1 deletions

View File

@ -68,7 +68,7 @@ std::string VideoBackend::GetName() const
std::string VideoBackend::GetDisplayName() const
{
if (g_renderer && static_cast<Renderer*>(g_renderer.get())->IsGLES())
if (g_ogl_config.bIsES)
return _trans("OpenGL ES");
else
return _trans("OpenGL");