projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10f097e
)
window.c: Check for cairo device failure the right way
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 14 Apr 2011 15:54:59 +0000
(11:54 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 14 Apr 2011 15:54:59 +0000
(11:54 -0400)
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
417268d
..
5ab3422
100644
(file)
--- a/
clients/window.c
+++ b/
clients/window.c
@@
-1765,7
+1765,7
@@
init_egl(struct display *d)
#ifdef HAVE_CAIRO_EGL
d->device = cairo_egl_device_create(d->dpy, d->ctx);
- if (
d->device == NULL
) {
+ if (
cairo_device_status(d->device) != CAIRO_STATUS_SUCCESS
) {
fprintf(stderr, "failed to get cairo egl device\n");
return -1;
}