summaryrefslogtreecommitdiff
path: root/hw/kdrive/ephyr/ephyr_glamor.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/kdrive/ephyr/ephyr_glamor.c')
-rw-r--r--hw/kdrive/ephyr/ephyr_glamor.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/hw/kdrive/ephyr/ephyr_glamor.c b/hw/kdrive/ephyr/ephyr_glamor.c
index d81b65544..adb8f4182 100644
--- a/hw/kdrive/ephyr/ephyr_glamor.c
+++ b/hw/kdrive/ephyr/ephyr_glamor.c
@@ -47,13 +47,16 @@ static int ephyr_glamor_fd;
Bool
ephyr_glamor_init(ScreenPtr screen)
{
+ void *backend;
ephyr_glamor_fd = open(ephyr_glamor_device, O_RDWR | O_CLOEXEC);
if (ephyr_glamor_fd < 0)
return FALSE;
- glamor_egl_gbm_init(screen, ephyr_glamor_fd);
+ backend = glamor_egl_gbm_init(screen, ephyr_glamor_fd);
+ if (!backend)
+ return FALSE;
- glamor_init(screen, GLAMOR_USE_SCREEN | GLAMOR_USE_PICTURE_SCREEN);
+ glamor_init(screen, backend, GLAMOR_USE_SCREEN | GLAMOR_USE_PICTURE_SCREEN);
return TRUE;
}