Skip to content

Commit

Permalink
Fix Vk validation error about scissor exceeding signed int
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorro666 committed Feb 8, 2024
1 parent f938afe commit b1d7876
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renderdoc/driver/vulkan/wrappers/vk_sync_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ bool WrappedVulkan::Serialise_vkCmdWaitEvents(
{
GetDebugManager()->FillWithDiscardPattern(
commandBuffer, DiscardType::UndefinedTransition, b.image, b.newLayout,
b.subresourceRange, {{0, 0}, {~0U, ~0U}});
b.subresourceRange, {{0, 0}, {INT_MAX, INT_MAX}});
}
}
}
Expand Down Expand Up @@ -1402,7 +1402,7 @@ bool WrappedVulkan::Serialise_vkCmdWaitEvents2(SerialiserType &ser, VkCommandBuf
{
GetDebugManager()->FillWithDiscardPattern(
commandBuffer, DiscardType::UndefinedTransition, b.image, b.newLayout,
b.subresourceRange, {{0, 0}, {~0U, ~0U}});
b.subresourceRange, {{0, 0}, {INT_MAX, INT_MAX}});
}
}
}
Expand Down

0 comments on commit b1d7876

Please sign in to comment.