Merge pull request #4489 from stenzek/vulkan-minor-fixes

Vulkan: Minor fixes
This commit is contained in:
Stenzek
2016-12-05 12:19:49 +10:00
committed by GitHub
6 changed files with 56 additions and 32 deletions

View File

@ -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;