From 46e3454eb7730e49374ebdeacdf9078db335c1f9 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 24 May 2023 21:41:47 +0200 Subject: [PATCH] gl: Update tracked buffers from 2 to 4 With XWayland and direct scanout it is possible that some apps get into a situation where more than 2 buffers are in flight and in that case we want to be able to still track the change regions for those buffers. Usually 3 buffers are in use, so we go one higher, just to be safe. --- gdk/gdkglcontextprivate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/gdkglcontextprivate.h b/gdk/gdkglcontextprivate.h index cd28d48a7a..9ce133c4b7 100644 --- a/gdk/gdkglcontextprivate.h +++ b/gdk/gdkglcontextprivate.h @@ -37,7 +37,7 @@ typedef enum { /* The maximum amount of buffers we track update regions for. * Note that this is equal to the max buffer age value we * can provide a damage region for */ -#define GDK_GL_MAX_TRACKED_BUFFERS 2 +#define GDK_GL_MAX_TRACKED_BUFFERS 4 #define GDK_GL_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_GL_CONTEXT, GdkGLContextClass)) #define GDK_IS_GL_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_GL_CONTEXT)) -- 2.30.2