mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
32-bit compile fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user