mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 11:50:21 +00:00
vulkan: Fix compiler warnings on 32-bit
Vulkan handles are pointers on 64-bit, but 64-bit integers on 32-bit. Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
parent
d301d16aee
commit
e2a7dc5427
@ -620,7 +620,7 @@ gdk_vulkan_context_begin_frame (GdkDrawContext *draw_context,
|
||||
VkResult acquire_result;
|
||||
guint i;
|
||||
|
||||
g_assert (priv->draw_semaphore != NULL);
|
||||
g_assert (priv->draw_semaphore != VK_NULL_HANDLE);
|
||||
|
||||
color_state = gdk_surface_get_color_state (surface);
|
||||
depth = gdk_memory_depth_merge (depth, gdk_color_state_get_depth (color_state));
|
||||
@ -1373,7 +1373,7 @@ gdk_vulkan_context_set_draw_semaphore (GdkVulkanContext *context,
|
||||
|
||||
g_return_if_fail (GDK_IS_VULKAN_CONTEXT (context));
|
||||
g_return_if_fail (!gdk_draw_context_is_in_frame (GDK_DRAW_CONTEXT (context)));
|
||||
g_return_if_fail (priv->draw_semaphore == NULL);
|
||||
g_return_if_fail (priv->draw_semaphore == VK_NULL_HANDLE);
|
||||
|
||||
priv->draw_semaphore = semaphore;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user