mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01: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:
parent
a3f9f2c7aa
commit
5aeadb1ef8
@ -580,8 +580,8 @@ void PostProcessing::BlitFromTexture(const MathUtil::Rectangle<int>& dst,
|
|||||||
default_uniform_staging_buffer = false;
|
default_uniform_staging_buffer = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_intermediary_frame_buffer.release();
|
m_intermediary_frame_buffer.reset();
|
||||||
m_intermediary_color_texture.release();
|
m_intermediary_color_texture.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: ideally we'd do the user selected post process pass in the intermediary buffer in linear
|
// TODO: ideally we'd do the user selected post process pass in the intermediary buffer in linear
|
||||||
|
Loading…
x
Reference in New Issue
Block a user