From 0a92f741b3f8355b6d409e0e8ded29622d0b3aa8 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 9 Aug 2024 05:31:51 +0200 Subject: [PATCH] vulkan: Remove 2 unneeded return_if_fail() checks I want to deprecate that function, so getting rid of calls to it sounds like a good idea. --- gdk/gdkvulkancontext.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gdk/gdkvulkancontext.c b/gdk/gdkvulkancontext.c index a96b2dacab..c66621a66f 100644 --- a/gdk/gdkvulkancontext.c +++ b/gdk/gdkvulkancontext.c @@ -1348,7 +1348,6 @@ gdk_vulkan_context_get_draw_index (GdkVulkanContext *context) GdkVulkanContextPrivate *priv = gdk_vulkan_context_get_instance_private (context); g_return_val_if_fail (GDK_IS_VULKAN_CONTEXT (context), 0); - g_return_val_if_fail (gdk_draw_context_is_in_frame (GDK_DRAW_CONTEXT (context)), 0); return priv->draw_index; } @@ -1372,7 +1371,6 @@ gdk_vulkan_context_set_draw_semaphore (GdkVulkanContext *context, GdkVulkanContextPrivate *priv = gdk_vulkan_context_get_instance_private (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 == VK_NULL_HANDLE); priv->draw_semaphore = semaphore;