From ba6779cfa1d92eab99bb4482ef88d007fba10fdd Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Sat, 1 Jul 2023 03:43:44 +0300 Subject: [PATCH] Temporarily disable shader JIT by default --- src/core/PICA/gpu.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/PICA/gpu.cpp b/src/core/PICA/gpu.cpp index d0c90825..9be28bde 100644 --- a/src/core/PICA/gpu.cpp +++ b/src/core/PICA/gpu.cpp @@ -80,13 +80,15 @@ void GPU::reset() { // Call the correct version of drawArrays based on whether this is an indexed draw (first template parameter) // And whether we are going to use the shader JIT (second template parameter) void GPU::drawArrays(bool indexed) { + constexpr bool shaderJITEnabled = false; // TODO: Make a configurable option + if (indexed) { - if constexpr (ShaderJIT::isAvailable()) + if constexpr (ShaderJIT::isAvailable() && shaderJITEnabled) drawArrays(); else drawArrays(); } else { - if constexpr (ShaderJIT::isAvailable()) + if constexpr (ShaderJIT::isAvailable() && shaderJITEnabled) drawArrays(); else drawArrays();