From fd531bd39bf85ca4e7afd44e3134e7d5bce5508d Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 19 May 2021 05:31:46 -0400 Subject: [PATCH] [client] wayland: use util_hasGLExt for swapping buffers with damage --- client/displayservers/Wayland/gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/displayservers/Wayland/gl.c b/client/displayservers/Wayland/gl.c index 3f4e199b..77df59ec 100644 --- a/client/displayservers/Wayland/gl.c +++ b/client/displayservers/Wayland/gl.c @@ -77,12 +77,12 @@ void waylandEGLSwapBuffers(EGLDisplay display, EGLSurface surface, const struct wlWm.eglSwapWithDamageInit = true; if (wl_proxy_get_version((struct wl_proxy *) wlWm.surface) < 4) DEBUG_INFO("Swapping buffers with damage: not supported, need wl_compositor v4"); - else if (strstr(exts, "EGL_KHR_swap_buffers_with_damage") && g_egl_dynProcs.eglSwapBuffersWithDamageKHR) + else if (util_hasGLExt(exts, "EGL_KHR_swap_buffers_with_damage") && g_egl_dynProcs.eglSwapBuffersWithDamageKHR) { wlWm.eglSwapWithDamage = g_egl_dynProcs.eglSwapBuffersWithDamageKHR; DEBUG_INFO("Using EGL_KHR_swap_buffers_with_damage"); } - else if (strstr(exts, "EGL_EXT_swap_buffers_with_damage") && g_egl_dynProcs.eglSwapBuffersWithDamageEXT) + else if (util_hasGLExt(exts, "EGL_EXT_swap_buffers_with_damage") && g_egl_dynProcs.eglSwapBuffersWithDamageEXT) { wlWm.eglSwapWithDamage = g_egl_dynProcs.eglSwapBuffersWithDamageEXT; DEBUG_INFO("Using EGL_EXT_swap_buffers_with_damage");