Skip to content
Permalink
Browse files
Merge pull request #11547 from JosJuice/fix-gles
OGL: Fix GLES crashing on initialization
  • Loading branch information
degasus committed Feb 9, 2023
2 parents 17d7b75 + 6dfd582 commit a38e365
Showing 1 changed file with 1 addition and 1 deletion.
@@ -134,7 +134,7 @@ OGLGfx::OGLGfx(std::unique_ptr<GLContext> main_gl_context, float backbuffer_scal
m_current_framebuffer = m_system_framebuffer.get();
}

if (m_main_gl_context->IsGLES())
if (!m_main_gl_context->IsGLES())
{
// OpenGL 3 doesn't provide GLES like float functions for depth.
// They are in core in OpenGL 4.1, so almost every driver should support them.

0 comments on commit a38e365

Please sign in to comment.