mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
egl/dri2: fix segfault when display initialisation fails
dri2_display_destroy() is called when platform specific display initialisation fails. However, this would typically lead to a segfault due to the dri2_egl_display vbtl not having been set up. Fixes:2db9548296("loader_dri3/glx/egl: Optionally use a blit context for blitting operations") Signed-off-by: Frank Binns <francisbinns@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit6160bf97db)
This commit is contained in:
parent
f2778ed29a
commit
a0aa0a1a53
1 changed files with 1 additions and 1 deletions
|
|
@ -973,7 +973,7 @@ dri2_display_destroy(_EGLDisplay *disp)
|
|||
struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp);
|
||||
|
||||
if (dri2_dpy->own_dri_screen) {
|
||||
if (dri2_dpy->vtbl->close_screen_notify)
|
||||
if (dri2_dpy->vtbl && dri2_dpy->vtbl->close_screen_notify)
|
||||
dri2_dpy->vtbl->close_screen_notify(disp);
|
||||
dri2_dpy->core->destroyScreen(dri2_dpy->dri_screen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue