From 2ef884893ad910f4499700f6da49363ba218c8d8 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 4 Dec 2016 00:23:34 +1000 Subject: [PATCH] Vulkan: Fix map error when texture dumping is enabled --- Source/Core/VideoBackends/Vulkan/TextureCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;