Merge pull request #6574 from stenzek/framedump-texture
Renderer: Only recreate frame dump texture if dimensions differ
This commit is contained in:
commit
592b20c78e
|
@ -755,7 +755,7 @@ void Renderer::RenderFrameDump()
|
|||
// Or, resize texture if it isn't large enough to accommodate the current frame.
|
||||
if (!m_frame_dump_render_texture ||
|
||||
m_frame_dump_render_texture->GetConfig().width != static_cast<u32>(target_width) ||
|
||||
m_frame_dump_render_texture->GetConfig().height == static_cast<u32>(target_height))
|
||||
m_frame_dump_render_texture->GetConfig().height != static_cast<u32>(target_height))
|
||||
{
|
||||
// Recreate texture objects. Release before creating so we don't temporarily use twice the RAM.
|
||||
TextureConfig config(target_width, target_height, 1, 1, 1, AbstractTextureFormat::RGBA8, true);
|
||||
|
|
Loading…
Reference in New Issue