Renderer: Only recreate frame dump texture if dimensions differ

This was a typo, been around for a while. == should be !=. May improve
frame dumping performnace slightly, but I doubt much if any.
This commit is contained in:
Stenzek 2018-04-02 01:15:48 +10:00
parent aaf9f4759f
commit 2687c55cf6
1 changed files with 1 additions and 1 deletions

View File

@ -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);