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().
This commit is contained in:
Emmanuel Gil Peyrot 2019-12-08 16:14:57 +01:00
parent 8e354c2259
commit a94b96c954

View File

@ -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);