diff options
Diffstat (limited to 'glamor/glamor.c')
-rw-r--r-- | glamor/glamor.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c index 410ebd296..5947d7ff0 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -340,8 +340,12 @@ glamor_init(ScreenPtr screen, unsigned int flags) #endif /* If we are using egl screen, call egl screen init to * register correct close screen function. */ - if (flags & GLAMOR_USE_EGL_SCREEN) - glamor_egl_screen_init(screen); + if (flags & GLAMOR_USE_EGL_SCREEN) { + glamor_egl_screen_init(screen, &glamor_priv->ctx); + } else { + if (!glamor_glx_screen_init(&glamor_priv->ctx)) + goto fail; + } glamor_priv->saved_procs.close_screen = screen->CloseScreen; screen->CloseScreen = glamor_close_screen; |