PostProcessing: Don't potentially leak memory in BlitFromTexture()

All release() does is relinquish the pointer, rather than free the
memory associated with it.
This commit is contained in:
Lioncash 2024-01-23 13:29:26 -05:00
parent a3f9f2c7aa
commit 5aeadb1ef8
1 changed files with 2 additions and 2 deletions

View File

@ -580,8 +580,8 @@ void PostProcessing::BlitFromTexture(const MathUtil::Rectangle<int>& dst,
default_uniform_staging_buffer = false;
}
m_intermediary_frame_buffer.release();
m_intermediary_color_texture.release();
m_intermediary_frame_buffer.reset();
m_intermediary_color_texture.reset();
}
// TODO: ideally we'd do the user selected post process pass in the intermediary buffer in linear