mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
hwr2: Upload encore lighttable to correct texture
This commit is contained in:
parent
79a01789b8
commit
99bc417978
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ void MainPaletteManager::upload_lighttables(Rhi& rhi, Handle<TransferContext> ct
|
||||||
if (encoremap != nullptr)
|
if (encoremap != nullptr)
|
||||||
{
|
{
|
||||||
tcb::span<const std::byte> encoremap_bytes = tcb::as_bytes(tcb::span(encoremap, kPaletteSize * kLighttableRows));
|
tcb::span<const std::byte> encoremap_bytes = tcb::as_bytes(tcb::span(encoremap, kPaletteSize * kLighttableRows));
|
||||||
rhi.update_texture(ctx, lighttable_, {0, 0, kPaletteSize, kLighttableRows}, PixelFormat::kR8, encoremap_bytes);
|
rhi.update_texture(ctx, encore_lighttable_, {0, 0, kPaletteSize, kLighttableRows}, PixelFormat::kR8, encoremap_bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!lighttables_to_upload_.empty())
|
if (!lighttables_to_upload_.empty())
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue