gsk: use the correct memory type index

https://gitlab.gnome.org/GNOME/gtk/-/issues/6726
This commit is contained in:
Alejandro Piñeiro
2024-05-22 15:52:36 +02:00
committed by Benjamin Otte
parent e1f7c027d7
commit 130a6fe0cf

View File

@@ -1261,7 +1261,7 @@ gsk_vulkan_device_find_allocator (GskVulkanDevice *self,
g_assert (found < properties.memoryTypeCount);
return gsk_vulkan_allocator_ref (gsk_vulkan_device_get_allocator (self, i, &properties.memoryTypes[i]));
return gsk_vulkan_allocator_ref (gsk_vulkan_device_get_allocator (self, found, &properties.memoryTypes[found]));
}
GskVulkanAllocator *