Add error if flushing an unmapped region of memory

This commit is contained in:
baldurk
2015-12-02 20:40:50 +01:00
parent fa1520bc13
commit acb38757cd
@@ -531,6 +531,12 @@ VkResult WrappedVulkan::vkFlushMappedMemoryRanges(
MemMapState *state = GetRecord(pMemRanges[i].mem)->memMapState;
state->mapFlushed = true;
if(state->mappedPtr == NULL)
{
RDCERR("Flushing memory that isn't currently mapped");
continue;
}
if(capframe)
{
CACHE_THREAD_SERIALISER();