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;