Merge pull request #11547 from JosJuice/fix-gles

OGL: Fix GLES crashing on initialization
This commit is contained in:
Markus Wick 2023-02-09 18:16:48 +01:00 committed by GitHub
commit a38e365931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ OGLGfx::OGLGfx(std::unique_ptr<GLContext> main_gl_context, float backbuffer_scal
m_current_framebuffer = m_system_framebuffer.get(); 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. // 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. // They are in core in OpenGL 4.1, so almost every driver should support them.