Skip to content

Commit

Permalink
32-bit compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Dec 5, 2023
1 parent bfc3b42 commit dc76459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renderdoc/driver/vulkan/vk_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2272,7 +2272,7 @@ void VulkanDebugManager::FillWithDiscardPattern(VkCommandBuffer cmd, DiscardType
// framebuffer that only targets that aspect.
if(discardRange.aspectMask == VK_IMAGE_ASPECT_DEPTH_BIT)
{
if(!passdata.pso[1])
if(passdata.pso[1] == VK_NULL_HANDLE)
{
RDCERR("Don't have depth-only pipeline for masking out stencil discard");
return;
Expand All @@ -2283,7 +2283,7 @@ void VulkanDebugManager::FillWithDiscardPattern(VkCommandBuffer cmd, DiscardType
}
else
{
if(!passdata.pso[2])
if(passdata.pso[2] == VK_NULL_HANDLE)
{
RDCERR("Don't have stencil-only pipeline for masking out depth discard");
return;
Expand Down

0 comments on commit dc76459

Please sign in to comment.