summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/TextureCache.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2016-12-04 00:23:34 +1000
committerStenzek <stenzek@gmail.com>2016-12-04 00:23:34 +1000
commit2ef884893ad910f4499700f6da49363ba218c8d8 (patch)
tree7024ad858609121944b713dc437df7074c0707ec /Source/Core/VideoBackends/Vulkan/TextureCache.cpp
parent4c860ddb7080b3ab3ad54057c3bffd6766cd77cd (diff)
Vulkan: Fix map error when texture dumping is enabled
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 b607a91fd0..06f1dc8da9 100644
--- a/Source/Core/VideoBackends/Vulkan/TextureCache.cpp
+++ b/Source/Core/VideoBackends/Vulkan/TextureCache.cpp
@@ -669,7 +669,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;