mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-19 18:41:13 +00:00
Don't init device table if the createdevice call failed
This commit is contained in:
1 parent
a2244f38d2
commit
40b9e6d80b
1 file changed
+2
-2
@@ -768,10 +768,10 @@ VkResult WrappedVulkan::vkCreateDevice(
|
||||
// (note that we asserted above that there was nothing else in the chain)
|
||||
createInfo.pNext = NULL;
|
||||
|
||||
InitDeviceTable(*pDevice, gdpa);
|
||||
|
||||
if(ret == VK_SUCCESS)
|
||||
{
|
||||
InitDeviceTable(*pDevice, gdpa);
|
||||
|
||||
ResourceId id = GetResourceManager()->WrapResource(*pDevice, *pDevice);
|
||||
|
||||
if(m_State >= WRITING)
|
||||
|
||||
Reference in new issue
Block a user