mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-09 06:30:18 +01:00
xwayland: Call eglBindAPI after eglInitialize
Current Mesa Git master checks that the EGL display actually supports
the API passed to eglBindAPI, which can only succeed after
eglInitialize.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
(cherry picked from commit 166d4c8178)
This commit is contained in:
parent
e4bf0e5ad5
commit
f05a585910
1 changed files with 2 additions and 1 deletions
|
|
@ -298,12 +298,13 @@ xwl_drm_init_egl(struct xwl_screen *xwl_screen)
|
|||
return;
|
||||
}
|
||||
|
||||
eglBindAPI(EGL_OPENGL_API);
|
||||
if (!eglInitialize(xwl_screen->egl_display, &major, &minor)) {
|
||||
ErrorF("eglInitialize() failed\n");
|
||||
return;
|
||||
}
|
||||
|
||||
eglBindAPI(EGL_OPENGL_API);
|
||||
|
||||
version = eglQueryString(xwl_screen->egl_display, EGL_VERSION);
|
||||
ErrorF("glamor: EGL version %s:\n", version);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue