diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-07 09:33:06 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-07 10:06:01 +0200 |
commit | 1a89f28c7dde6e584a53409494fb5ca1626256b2 (patch) | |
tree | 6bb1a714cc1fb18d78121d7d8a199ab35fee16e6 /clients/gears.c | |
parent | 0c99163d9b8a9b189e3b4c6d4f0bdcf6b6a029ac (diff) | |
download | weston-1a89f28c7dde6e584a53409494fb5ca1626256b2.tar.gz |
gears: Fail if compiled without cairo-egl
Diffstat (limited to 'clients/gears.c')
-rw-r--r-- | clients/gears.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/clients/gears.c b/clients/gears.c index a2fc0de3..6af505b2 100644 --- a/clients/gears.c +++ b/clients/gears.c @@ -207,9 +207,12 @@ draw_gears(struct gears *gears) window_get_child_allocation(gears->window, &allocation); window_get_allocation(gears->window, &window_allocation); - display_acquire_window_surface(gears->d, - gears->window, - gears->context); + if (display_acquire_window_surface(gears->d, + gears->window, + gears->context) < 0) { + die("Unable to acquire window surface, " + "compiled without cairo-egl?\n"); + } glViewport(allocation.x, window_allocation.height - allocation.height - allocation.x, |