mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-18 03:31:31 +12:00
Temporarily disable shader JIT by default
This commit is contained in:
parent
0720dd4a1a
commit
ba6779cfa1
1 changed files with 4 additions and 2 deletions
|
@ -80,13 +80,15 @@ void GPU::reset() {
|
||||||
// Call the correct version of drawArrays based on whether this is an indexed draw (first template parameter)
|
// 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)
|
// And whether we are going to use the shader JIT (second template parameter)
|
||||||
void GPU::drawArrays(bool indexed) {
|
void GPU::drawArrays(bool indexed) {
|
||||||
|
constexpr bool shaderJITEnabled = false; // TODO: Make a configurable option
|
||||||
|
|
||||||
if (indexed) {
|
if (indexed) {
|
||||||
if constexpr (ShaderJIT::isAvailable())
|
if constexpr (ShaderJIT::isAvailable() && shaderJITEnabled)
|
||||||
drawArrays<true, true>();
|
drawArrays<true, true>();
|
||||||
else
|
else
|
||||||
drawArrays<true, false>();
|
drawArrays<true, false>();
|
||||||
} else {
|
} else {
|
||||||
if constexpr (ShaderJIT::isAvailable())
|
if constexpr (ShaderJIT::isAvailable() && shaderJITEnabled)
|
||||||
drawArrays<false, true>();
|
drawArrays<false, true>();
|
||||||
else
|
else
|
||||||
drawArrays<false, false>();
|
drawArrays<false, false>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue