From a94b96c9548f6600ca37e455e4d61ce0da1c5950 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 8 Dec 2019 16:14:57 +0100 Subject: [PATCH] Wayland: Bump wl_compositor for damage_buffer wl_surface supports a damage_buffer request since its version 4, which requires wl_compositor to have been bound at that version too. damage_buffer can then be used by the EGL implementation to optimise eglSwapBuffersWithDamageKHR(). --- src/wl_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wl_init.c b/src/wl_init.c index 9e692f0e..d5c6f74f 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -783,7 +783,7 @@ static void registryHandleGlobal(void* data, { if (strcmp(interface, "wl_compositor") == 0) { - _glfw.wl.compositorVersion = min(3, version); + _glfw.wl.compositorVersion = min(4, version); _glfw.wl.compositor = wl_registry_bind(registry, name, &wl_compositor_interface, _glfw.wl.compositorVersion);