Skip to content

Commit

Permalink
fix: Bind incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-lunarg committed Jan 14, 2025
1 parent e26c773 commit 1d21e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/decode/vulkan_default_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ void VulkanDefaultAllocator::ReportBindIncompatibility(const VkMemoryRequirement
auto memory_alloc_info = reinterpret_cast<MemoryAllocInfo*>(allocator_memory_data);
uint32_t memory_type_index = memory_alloc_info->memory_type_index;

if ((requirements[i].memoryTypeBits & (1 << memory_type_index)) != 0)
if ((requirements[i].memoryTypeBits & (1 << memory_type_index)) == 0)
{
GFXRECON_LOG_FATAL(
"Resource memory bind failed: resource is not compatible with the specified memory type.");
Expand Down

0 comments on commit 1d21e30

Please sign in to comment.