32-bit compile fix

This commit is contained in:
baldurk
2018-03-05 16:55:41 +00:00
parent 301c6ef7eb
commit dd7fd45a50
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1414,7 +1414,7 @@ void VulkanReplay::DestroyResources()
{
ClearPostVSCache();
if(m_MeshFetchDescSetLayout)
if(m_MeshFetchDescSetLayout != VK_NULL_HANDLE)
m_pDriver->vkDestroyDescriptorSetLayout(m_pDriver->GetDev(), m_MeshFetchDescSetLayout, NULL);
m_General.Destroy(m_pDriver);
@@ -497,7 +497,7 @@ void WrappedVulkan::Shutdown()
GetResourceManager()->ReleaseWrappedResource(m_InternalCmds.freecmds[i]);
// destroy the pool
if(m_Device && m_InternalCmds.cmdpool)
if(m_Device != VK_NULL_HANDLE && m_InternalCmds.cmdpool != VK_NULL_HANDLE)
{
ObjDisp(m_Device)->DestroyCommandPool(Unwrap(m_Device), Unwrap(m_InternalCmds.cmdpool), NULL);
GetResourceManager()->ReleaseWrappedResource(m_InternalCmds.cmdpool);