gskvulkanmemory.c: Use VK_NULL_HANDLE for VkDeviceMemory

...rather than NULL, so that things will build fine on non-LLP, non-64-bit
systems.
This commit is contained in:
Chun-wei Fan 2024-05-27 18:55:08 +08:00 committed by Matthias Clasen
parent 3db4a05493
commit 9741082467

View File

@ -178,7 +178,7 @@ gsk_vulkan_buddy_allocator_alloc (GskVulkanAllocator *allocator,
if (self->cache.vk_memory)
{
*alloc = self->cache;
self->cache.vk_memory = NULL;
self->cache.vk_memory = VK_NULL_HANDLE;
}
else
{
@ -240,7 +240,7 @@ restart:
alloc->size <<= 1;
if (slot == 0)
{
if (self->cache.vk_memory == NULL)
if (self->cache.vk_memory == VK_NULL_HANDLE)
self->cache = *alloc;
else
gsk_vulkan_free (self->allocator, alloc);