mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 19:50:11 +01:00
clients: Fix compositor version check for WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com> Reviewed-By: David Fort <contact@hardening-consulting.com>
This commit is contained in:
parent
602b6b6435
commit
e1434d3ca8
1 changed files with 2 additions and 1 deletions
|
|
@ -262,7 +262,8 @@ create_window(struct display *display, int width, int height,
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (display->compositor_version < 4 &&
|
if (display->compositor_version <
|
||||||
|
WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION &&
|
||||||
(flags & WINDOW_FLAG_USE_DAMAGE_BUFFER)) {
|
(flags & WINDOW_FLAG_USE_DAMAGE_BUFFER)) {
|
||||||
fprintf(stderr, "wl_surface.damage_buffer unsupported in "
|
fprintf(stderr, "wl_surface.damage_buffer unsupported in "
|
||||||
"wl_surface version %d\n",
|
"wl_surface version %d\n",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue