OpenGLHostDisplay: Fix crash in libretro core

This commit is contained in:
Connor McLaughlin 2020-11-24 14:54:06 +10:00
parent 16bfaad505
commit 7fd22958ae
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ void OpenGLHostDisplay::DestroyImGuiContext()
bool OpenGLHostDisplay::CreateResources() bool OpenGLHostDisplay::CreateResources()
{ {
m_use_gles2_draw_path = m_gl_context->IsGLES() && !GLAD_GL_ES_VERSION_3_0; m_use_gles2_draw_path = (GetRenderAPI() == HostDisplay::RenderAPI::OpenGLES && !GLAD_GL_ES_VERSION_3_0);
if (!m_use_gles2_draw_path) if (!m_use_gles2_draw_path)
{ {
static constexpr char fullscreen_quad_vertex_shader[] = R"( static constexpr char fullscreen_quad_vertex_shader[] = R"(