GPU/HW: Warning fix

This commit is contained in:
Stenzek 2024-05-23 19:54:38 +10:00
parent d2f28b6926
commit 49b2e76dea
No known key found for this signature in database

View File

@ -2599,11 +2599,14 @@ void GPU_HW::UpdateSoftwareRenderer(bool copy_vram_from_hw)
clip_cmd->new_area = m_drawing_area; clip_cmd->new_area = m_drawing_area;
sw_renderer->PushCommand(clip_cmd); sw_renderer->PushCommand(clip_cmd);
GPUBackendUpdateCLUTCommand* clut_cmd = sw_renderer->NewUpdateCLUTCommand(); if (IsCLUTValid())
FillBackendCommandParameters(clut_cmd); {
clut_cmd->reg.bits = m_current_clut_reg_bits; GPUBackendUpdateCLUTCommand* clut_cmd = sw_renderer->NewUpdateCLUTCommand();
clut_cmd->clut_is_8bit = m_current_clut_is_8bit; FillBackendCommandParameters(clut_cmd);
sw_renderer->PushCommand(clut_cmd); clut_cmd->reg.bits = static_cast<u16>(m_current_clut_reg_bits);
clut_cmd->clut_is_8bit = m_current_clut_is_8bit;
sw_renderer->PushCommand(clut_cmd);
}
} }
m_sw_renderer = std::move(sw_renderer); m_sw_renderer = std::move(sw_renderer);