From 576c82185bc21ac35d9721c913a5dcc5572360a1 Mon Sep 17 00:00:00 2001 From: fzurita Date: Sun, 26 Sep 2021 12:08:53 -0400 Subject: [PATCH] Force software vertex clipping to enabled for GLES --- src/Graphics/OpenGLContext/opengl_GLInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Graphics/OpenGLContext/opengl_GLInfo.cpp b/src/Graphics/OpenGLContext/opengl_GLInfo.cpp index 29e4c27d..44ddc9a1 100644 --- a/src/Graphics/OpenGLContext/opengl_GLInfo.cpp +++ b/src/Graphics/OpenGLContext/opengl_GLInfo.cpp @@ -104,6 +104,11 @@ void GLInfo::init() { config.generalEmulation.enableHybridFilter = 0; } + // Force software vertex clipping to enabled for GLES + if (isGLESX) { + config.generalEmulation.enableClipping = 1; + } + drawElementsBaseVertex = !isGLESX || (Utils::isExtensionSupported(*this, "GL_EXT_draw_elements_base_vertex") || numericVersion >= 32); #ifdef EGL