Compile fix for checking vulkan handle directly as bool

This commit is contained in:
baldurk
2017-11-24 18:25:43 +00:00
parent ea77204580
commit 58ac0ccfb2
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -815,7 +815,7 @@ bool WrappedVulkan::Serialise_InitialState(SerialiserType &ser, ResourceId id, W
ser.Serialise("Contents", Contents, ContentsSize, SerialiserFlags::NoFlags);
// unmap the resource we mapped before - we need to do this on read and on write.
if(!IsStructuredExporting(m_State) && mappedMem)
if(!IsStructuredExporting(m_State) && mappedMem != VK_NULL_HANDLE)
ObjDisp(d)->UnmapMemory(Unwrap(d), Unwrap(mappedMem));
SERIALISE_CHECK_READ_ERRORS();