mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-05 01:40:35 +02:00
egl/wayland: Always initialise fd_display_gpu
Set it to an invalid value, rather than leaving it to be stdout or
something.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24347>
(cherry picked from commit 449e5bad7c)
This commit is contained in:
parent
ab6e8f6b1a
commit
c795abedd2
2 changed files with 2 additions and 1 deletions
|
|
@ -166,7 +166,7 @@
|
|||
"description": "egl/wayland: Always initialise fd_display_gpu",
|
||||
"nominated": false,
|
||||
"nomination_type": null,
|
||||
"resolution": 4,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2772,6 +2772,7 @@ dri2_initialize_wayland_swrast(_EGLDisplay *disp)
|
|||
return _eglError(EGL_BAD_ALLOC, "eglInitialize");
|
||||
|
||||
dri2_dpy->fd_render_gpu = -1;
|
||||
dri2_dpy->fd_display_gpu = -1;
|
||||
disp->DriverData = (void *) dri2_dpy;
|
||||
|
||||
if (dri2_wl_formats_init(&dri2_dpy->formats) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue