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.
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user