egl/x11: Match loader_destroy_screen_resources() with init().
With the DRI2 removal, it became clear that this code wasn't actually being called in the DRI3 path. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19942>
This commit is contained in:
@@ -215,8 +215,6 @@ struct dri2_egl_display {
|
||||
|
||||
mtx_t lock;
|
||||
|
||||
int dri2_major;
|
||||
int dri2_minor;
|
||||
struct dri_screen *dri_screen_render_gpu;
|
||||
/* dri_screen_display_gpu holds display GPU in case of prime gpu offloading
|
||||
* else dri_screen_render_gpu and dri_screen_display_gpu is same. In case of
|
||||
|
||||
@@ -1364,8 +1364,7 @@ void
|
||||
dri2_teardown_x11(struct dri2_egl_display *dri2_dpy)
|
||||
{
|
||||
#ifdef HAVE_LIBDRM
|
||||
if (dri2_dpy->dri2_major >= 3)
|
||||
loader_destroy_screen_resources(&dri2_dpy->screen_resources);
|
||||
loader_destroy_screen_resources(&dri2_dpy->screen_resources);
|
||||
#endif
|
||||
|
||||
if (dri2_dpy->own_device)
|
||||
|
||||
Reference in New Issue
Block a user