Don't create quad write FS module just to delete it again

This commit is contained in:
baldurk
2016-02-10 17:13:01 +01:00
parent 8bf41ab8c9
commit a67f559308
+5 -1
View File
@@ -761,7 +761,11 @@ VulkanDebugManager::VulkanDebugManager(WrappedVulkan *driver, VkDevice dev)
};
if(i == QUADWRITEFS)
{
m_QuadSPIRV = shaderSPIRV[i];
module[i] = VK_NULL_HANDLE;
continue;
}
vkr = vt->CreateShaderModule(Unwrap(dev), &modinfo, NULL, &module[i]);
RDCASSERT(vkr == VK_SUCCESS);
@@ -1109,7 +1113,7 @@ VulkanDebugManager::VulkanDebugManager(WrappedVulkan *driver, VkDevice dev)
// not compiled normally
continue;
}
else
else if(module[i] != VK_NULL_HANDLE)
{
vt->DestroyShaderModule(Unwrap(dev), Unwrap(module[i]), NULL);
GetResourceManager()->ReleaseWrappedResource(module[i]);