diff options
| author | JosJuice <josjuice@gmail.com> | 2023-02-09 18:09:03 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2023-02-09 18:09:03 +0100 |
| commit | 6dfd582de61bd57ee5ad14596d63e6fecf1e79d2 (patch) | |
| tree | 9dd04e201651748d450f3f0838325c483a7c0f49 | |
| parent | aaad0cd39fca1ad020864ad7a141052179e7feb4 (diff) | |
OGL: Fix GLES crashing on initialization
Fixes a regression from PR 11522 ("Kill Renderer").
| -rw-r--r-- | Source/Core/VideoBackends/OGL/OGLGfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLGfx.cpp b/Source/Core/VideoBackends/OGL/OGLGfx.cpp index 880b213fb8..a89f05626b 100644 --- a/Source/Core/VideoBackends/OGL/OGLGfx.cpp +++ b/Source/Core/VideoBackends/OGL/OGLGfx.cpp @@ -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. |
