mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix memory leak in BlitPostimgScreens due to typos
The indexed program was being compiled every frame and the wrong program was being used for the screen configuration.
This commit is contained in:
parent
bb1eaea322
commit
7e74e70c20
1 changed files with 3 additions and 3 deletions
|
|
@ -155,7 +155,7 @@ void BlitPostimgScreens::prepass(Rhi& rhi)
|
|||
ProgramDesc desc {};
|
||||
desc.name = "postimg";
|
||||
desc.defines = tcb::make_span(defines);
|
||||
program_ = rhi.create_program(desc);
|
||||
indexed_program_ = rhi.create_program(desc);
|
||||
}
|
||||
|
||||
if (!quad_vbo_)
|
||||
|
|
@ -190,11 +190,11 @@ void BlitPostimgScreens::transfer(Rhi& rhi)
|
|||
|
||||
if (screen_config.indexed)
|
||||
{
|
||||
data.program = program_;
|
||||
data.program = indexed_program_;
|
||||
}
|
||||
else
|
||||
{
|
||||
data.program = indexed_program_;
|
||||
data.program = program_;
|
||||
}
|
||||
|
||||
screen_data_[i] = std::move(data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue