Commit 251a0679 authored by Olivier Fourdan's avatar Olivier Fourdan Committed by Emma Anholt
Browse files

ephyr: Fail if glamor is requested but not usable


Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
Signed-off-by: Emma Anholt's avatarEric Anholt <eric@anholt.net>
Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
Reviewed-by: Emma Anholt's avatarEric Anholt <eric@anholt.net>
parent 0a78b599
......@@ -1407,9 +1407,12 @@ ephyr_glamor_init(ScreenPtr screen)
ephyr_glamor_set_window_size(scrpriv->glamor,
scrpriv->win_width, scrpriv->win_height);
glamor_init(screen,
GLAMOR_USE_SCREEN |
GLAMOR_USE_PICTURE_SCREEN);
if (!glamor_init(screen,
GLAMOR_USE_SCREEN |
GLAMOR_USE_PICTURE_SCREEN)) {
FatalError("Failed to initialize glamor\n");
return FALSE;
}
return TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment