mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Add some missing error messages during init contents prepare
This commit is contained in:
@@ -221,7 +221,10 @@ bool WrappedVulkan::Prepare_InitialState(WrappedVkRes *res)
|
||||
AllocateMemoryForResource(dstBuf, MemoryScope::InitialContents, MemoryType::Readback);
|
||||
|
||||
if(readbackmem.mem == VK_NULL_HANDLE)
|
||||
{
|
||||
RDCERR("Couldn't allocate readback memory");
|
||||
return false;
|
||||
}
|
||||
|
||||
vkr = ObjDisp(d)->BindBufferMemory(Unwrap(d), Unwrap(dstBuf), Unwrap(readbackmem.mem),
|
||||
readbackmem.offs);
|
||||
@@ -451,7 +454,10 @@ bool WrappedVulkan::Prepare_InitialState(WrappedVkRes *res)
|
||||
AllocateMemoryForResource(dstBuf, MemoryScope::InitialContents, MemoryType::Readback);
|
||||
|
||||
if(readbackmem.mem == VK_NULL_HANDLE)
|
||||
{
|
||||
RDCERR("Couldn't allocate readback memory");
|
||||
return false;
|
||||
}
|
||||
|
||||
CheckVkResult(vkr);
|
||||
vkr = ObjDisp(d)->BindBufferMemory(Unwrap(d), Unwrap(dstBuf), Unwrap(readbackmem.mem),
|
||||
|
||||
Reference in New Issue
Block a user