glx/drisw: Nerf PutImage when loaderPrivate == NULL
authorAdam Jackson <ajax@redhat.com>
Wed, 16 Jun 2021 01:53:27 +0000 (21:53 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 15 Jul 2021 15:10:17 +0000 (15:10 +0000)
commit34342cce895b4d666c3f6a1cbf3f3b7da859afc2
tree55aa069f04d5e12635e7344fd1c5c87a8785ed51
parentf5c8761edab0f3982ab22de774afa81148b47795
glx/drisw: Nerf PutImage when loaderPrivate == NULL

This means the drawable was already destroyed. This can happen during
diplay teardown, destroying the context will make it current first so it
can flush rendering and destroy textures and such, and if the drawable
is already destroyed then flushing to nowhere would crash.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11423>
src/glx/drisw_glx.c