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>
dev
Christopher Michael 9 years ago committed by Derek Foreman
parent 602b6b6435
commit e1434d3ca8
  1. 3
      clients/simple-damage.c

@ -262,7 +262,8 @@ create_window(struct display *display, int width, int height,
exit(1);
}
if (display->compositor_version < 4 &&
if (display->compositor_version <
WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION &&
(flags & WINDOW_FLAG_USE_DAMAGE_BUFFER)) {
fprintf(stderr, "wl_surface.damage_buffer unsupported in "
"wl_surface version %d\n",

Loading…
Cancel
Save