mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-02 21:45:43 -04:00
OpenGLHostDisplay: Fix crash in libretro core
This commit is contained in:
parent
16bfaad505
commit
7fd22958ae
@ -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"(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user