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:
Emma Anholt
2022-11-22 15:05:10 -08:00
parent b4eed47828
commit 9217e49e80
2 changed files with 1 additions and 4 deletions

View File

@@ -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

View File

@@ -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)