Don't return NULL on error, we must always return a valid trace

This commit is contained in:
baldurk
2020-04-07 17:14:01 +01:00
parent ad79bf7cc5
commit ebe53d2be1
@@ -1581,6 +1581,8 @@ ShaderDebugTrace *VulkanReplay::DebugPixel(uint32_t eventId, uint32_t x, uint32_
{
RDCLOG("Didn't get any valid hit to debug");
delete apiWrapper;
ret = new ShaderDebugTrace;
}
if(descpool != VK_NULL_HANDLE)