From 59f51f7d0cbe2cb46ab033a9fad1514387009d8e Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sun, 29 Dec 2024 14:28:04 +0200 Subject: [PATCH] GLES: Properly stub out logic ops --- src/core/renderer_gl/renderer_gl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/renderer_gl/renderer_gl.cpp b/src/core/renderer_gl/renderer_gl.cpp index ab44eb08..c1899655 100644 --- a/src/core/renderer_gl/renderer_gl.cpp +++ b/src/core/renderer_gl/renderer_gl.cpp @@ -1263,5 +1263,7 @@ void RendererGL::setupGLES() { } // Stub out logic operations so that calling them doesn't crash the emulator - glLogicOp = [](GLenum) {}; -} \ No newline at end of file + if (!glLogicOp) { + glLogicOp = [](GLenum) {}; + } +}