diff --git a/src/core/renderer_gl/renderer_gl.cpp b/src/core/renderer_gl/renderer_gl.cpp index ab44eb081..c18996559 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) {}; + } +}