summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2018-04-02 01:15:48 +1000
committerStenzek <stenzek@gmail.com>2018-04-02 01:15:48 +1000
commit2687c55cf6d923d237fd428e4c184961460699b1 (patch)
tree97091e496bfcda5cabcdd098525da1585cb653a6 /Source/Core/VideoCommon/RenderBase.cpp
parentaaf9f4759f169f6afbf70628916276ed4a955ad2 (diff)
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.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp2
1 files changed, 1 insertions, 1 deletions
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<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);