From e540022869ebaac4eb1672bc9897dcbdc6ec771f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 29 Apr 2024 12:11:38 -0400 Subject: [PATCH] x11: Implement a missing method Vulkan on X11 was getting spew for missing an empty_frame implementation. --- gdk/x11/gdkvulkancontext-x11.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdk/x11/gdkvulkancontext-x11.c b/gdk/x11/gdkvulkancontext-x11.c index eb0270c596..12ac0f24f4 100644 --- a/gdk/x11/gdkvulkancontext-x11.c +++ b/gdk/x11/gdkvulkancontext-x11.c @@ -68,6 +68,11 @@ gdk_x11_vulkan_context_end_frame (GdkDrawContext *context, GDK_DRAW_CONTEXT_CLASS (gdk_x11_vulkan_context_parent_class)->end_frame (context, painted); } +static void +gdk_x11_vulkan_context_empty_frame (GdkDrawContext *draw_context) +{ +} + static void gdk_x11_vulkan_context_class_init (GdkX11VulkanContextClass *klass) { @@ -75,6 +80,7 @@ gdk_x11_vulkan_context_class_init (GdkX11VulkanContextClass *klass) GdkDrawContextClass *draw_context_class = GDK_DRAW_CONTEXT_CLASS (klass); draw_context_class->end_frame = gdk_x11_vulkan_context_end_frame; + draw_context_class->empty_frame = gdk_x11_vulkan_context_empty_frame; context_class->create_surface = gdk_x11_vulkan_context_create_surface; }