Don't init device table if the createdevice call failed

This commit is contained in:
baldurk
2016-04-08 20:33:06 +02:00
parent a2244f38d2
commit 40b9e6d80b
@@ -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)