mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 09:58:14 +02:00
window.c: Check for cairo device failure the right way
This commit is contained in:
parent
10f097e8dd
commit
d11eadb519
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue