summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/TextureCache.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@users.noreply.github.com>2016-12-05 12:19:49 +1000
committerGitHub <noreply@github.com>2016-12-05 12:19:49 +1000
commitbff394ec8a2ad6f3f49117fd1e83934068bf48af (patch)
tree97da58cd7952c725c1e42ff65ed78e79136591b2 /Source/Core/VideoBackends/Vulkan/TextureCache.cpp
parent15e2133ce706fe8cd5613c81a8866abe03960e3b (diff)
parent8f97a2490488a8d55f8d306e302d7821fa1d4c18 (diff)
Merge pull request #4489 from stenzek/vulkan-minor-fixes
Vulkan: Minor fixes
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/TextureCache.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/TextureCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/TextureCache.cpp b/Source/Core/VideoBackends/Vulkan/TextureCache.cpp
index 78892f9fb3..b08ae89f91 100644
--- a/Source/Core/VideoBackends/Vulkan/TextureCache.cpp
+++ b/Source/Core/VideoBackends/Vulkan/TextureCache.cpp
@@ -556,7 +556,7 @@ bool TextureCache::TCacheEntry::Save(const std::string& filename, unsigned int l
Util::ExecuteCurrentCommandsAndRestoreState(false, true);
// Map the staging texture so we can copy the contents out.
- if (staging_texture->Map())
+ if (!staging_texture->Map())
{
PanicAlert("Failed to map staging texture");
return false;