mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
egl/dri2: use the right egl platform enum
this is otherwise completely broken and allows loading zink in all cases
Fixes: 0fd066a1d7 ("egl: only check dri3 on X11")
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27836>
This commit is contained in:
parent
75f186f3c4
commit
571effdf08
1 changed files with 3 additions and 2 deletions
|
|
@ -974,8 +974,9 @@ dri2_setup_extensions(_EGLDisplay *disp)
|
|||
dri2_dpy->dri3_major_version != -1 &&
|
||||
!dri2_dpy->multibuffers_available &&
|
||||
#endif
|
||||
(disp->Platform == EGL_PLATFORM_X11_KHR ||
|
||||
disp->Platform == EGL_PLATFORM_XCB_EXT) &&
|
||||
/* this is enum _egl_platform_type */
|
||||
(disp->Platform == _EGL_PLATFORM_X11 ||
|
||||
disp->Platform == _EGL_PLATFORM_XCB) &&
|
||||
!debug_get_bool_option("LIBGL_KOPPER_DRI2", false))
|
||||
return EGL_FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue