mirror of
https://github.com/mikage-emu/mikage-dev.git
synced 2025-01-22 05:21:08 +01:00
Vulkan: Skip updating light LUTs if lighting is disabled entirely
This commit is contained in:
parent
4d538257b1
commit
78f1fdf70e
1 changed files with 1 additions and 1 deletions
|
@ -1096,7 +1096,7 @@ void Renderer::FinalizeTriangleBatchInternal(Context& context, const VertexShade
|
||||||
// Hit in steel diver on startup!
|
// Hit in steel diver on startup!
|
||||||
// throw Mikage::Exceptions::Invalid("Inconsistent lighting configuration: Attempted to read disabled LUTs");
|
// throw Mikage::Exceptions::Invalid("Inconsistent lighting configuration: Attempted to read disabled LUTs");
|
||||||
}
|
}
|
||||||
const uint32_t used_luts = context.registers.lighting.config.GetEnabledLUTMask();
|
const uint32_t used_luts = context.registers.lighting.disabled() ? 0 : context.registers.lighting.config.GetEnabledLUTMask();
|
||||||
|
|
||||||
for (unsigned lut_index = 0; lut_index < 24; ++lut_index) {
|
for (unsigned lut_index = 0; lut_index < 24; ++lut_index) {
|
||||||
if (!(used_luts & (1 << lut_index))) {
|
if (!(used_luts & (1 << lut_index))) {
|
||||||
|
|
Loading…
Reference in a new issue