mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 23:18:20 +02:00
egl/dri2: fix error returns on dri2_initialize_x11_dri3 fail
this is a failure path, so return failure
Fixes: 62f65f4bfd ("egl/dri2: if zink is preferred from dri3 skip dri2 paths.")
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29171>
This commit is contained in:
parent
caca5e0de6
commit
c6b29a4788
1 changed files with 3 additions and 1 deletions
|
|
@ -1712,7 +1712,9 @@ dri2_initialize_x11_dri3(_EGLDisplay *disp)
|
|||
|
||||
cleanup:
|
||||
dri2_display_destroy(disp);
|
||||
return status;
|
||||
return status == DRI2_EGL_DRIVER_PREFER_ZINK ?
|
||||
DRI2_EGL_DRIVER_PREFER_ZINK :
|
||||
DRI2_EGL_DRIVER_FAILED;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue