mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Add error if flushing an unmapped region of memory
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user