mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 06:04:34 +00:00
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:
parent
8e354c2259
commit
a94b96c954
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user