From d2fa538eba97b66d2bd5ac7d27b98925e4420e2f Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 31 Mar 2026 21:55:56 -0700
Subject: [PATCH] gskvulkanimage: fix building on 32-bit

VkImage is always a 64-bit integer, however the size of NULL
changes depending on the architecture.

Instead, use VK_NULL_HANDLE which is always 64-bits.
---
 gsk/gpu/gskvulkanimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gsk/gpu/gskvulkanimage.c b/gsk/gpu/gskvulkanimage.c
index c85370ee2df..f713908d252 100644
--- a/gsk/gpu/gskvulkanimage.c
+++ b/gsk/gpu/gskvulkanimage.c
@@ -1275,7 +1275,7 @@ gsk_vulkan_image_new_for_dmabuf (GskVulkanDevice *device,
     {
       GDK_DEBUG (DMABUF, "Vulkan failed to dup() fd: %s", g_strerror (errno));
       vkDestroyImage (vk_device, self->vk_image, NULL);
-      self->vk_image = NULL;
+      self->vk_image = VK_NULL_HANDLE;
       g_object_unref (self);
       return NULL;
     }
-- 
GitLab

