diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c index 4aa19d43..087167d4 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -5957,7 +5957,7 @@ static uint32_t vkd3d_memory_info_find_global_mask(struct d3d12_device *device) const VkMemoryPropertyFlags pinned_mask = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT; flags = device->memory_properties.memoryTypes[i].propertyFlags; - heap_index = device->memory_properties.memoryTypes[i].propertyFlags; + heap_index = device->memory_properties.memoryTypes[i].heapIndex; if (heap_index != largest_device_local_heap_index && heap_index != largest_host_only_heap_index &&