ephyr: Fail if glamor is requested but not usable
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
0a78b599b3
commit
251a067993
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue