softjit: Fix disabled cache.

This commit is contained in:
Unknown W. Brackets committed 2021-11-27 11:32:47 -08:00
1 parent 1cb48a7bd2
commit 6fbcf67093
1 file changed
+2
+2
View File
@@ -99,6 +99,7 @@ void ComputePixelFuncID(PixelFuncID *id) {
id->applyFog = gstate.isFogEnabled() && !gstate.isModeThrough();
}
#ifdef SOFTPIXEL_USE_CACHE
// Cache some values for later convenience.
if (id->dithering) {
for (int y = 0; y < 4; ++y) {
@@ -130,6 +131,7 @@ void ComputePixelFuncID(PixelFuncID *id) {
break;
}
}
#endif
}
std::string DescribePixelFuncID(const PixelFuncID &id) {