mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user