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
1 changed files with 8 additions and 5 deletions

View File

@ -2599,12 +2599,15 @@ void GPU_HW::UpdateSoftwareRenderer(bool copy_vram_from_hw)
clip_cmd->new_area = m_drawing_area;
sw_renderer->PushCommand(clip_cmd);
if (IsCLUTValid())
{
GPUBackendUpdateCLUTCommand* clut_cmd = sw_renderer->NewUpdateCLUTCommand();
FillBackendCommandParameters(clut_cmd);
clut_cmd->reg.bits = m_current_clut_reg_bits;
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);
}