From 2687c55cf6d923d237fd428e4c184961460699b1 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 2 Apr 2018 01:15:48 +1000 Subject: [PATCH] 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. --- Source/Core/VideoCommon/RenderBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 3e81312541..1598fe0a00 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -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(target_width) || - m_frame_dump_render_texture->GetConfig().height == static_cast(target_height)) + m_frame_dump_render_texture->GetConfig().height != static_cast(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);