summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael@osg.samsung.com>2015-12-20 07:41:52 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-01-14 16:36:21 -0600
commite1434d3ca8b69a9067ea064dffe2d16e966f60e2 (patch)
tree1bbf82724fc5119e028c7824f01fdd47c0ed5b4f /clients
parent602b6b64352bb513a65924d310b5a63b86975bf6 (diff)
downloadweston-e1434d3ca8b69a9067ea064dffe2d16e966f60e2.tar.gz
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>
Diffstat (limited to 'clients')
-rw-r--r--clients/simple-damage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/simple-damage.c b/clients/simple-damage.c
index 37a81f58..0353cccb 100644
--- a/clients/simple-damage.c
+++ b/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",