Skip to content
Permalink
Browse files
Merge pull request #6574 from stenzek/framedump-texture
Renderer: Only recreate frame dump texture if dimensions differ
  • Loading branch information
leoetlino committed Apr 1, 2018
2 parents aaf9f47 + 2687c55 commit 592b20c
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);

0 comments on commit 592b20c

Please sign in to comment.