st/nine: Fix cubetexture early destruction
authorAxel Davy <davyaxel0@gmail.com>
Fri, 12 Mar 2021 12:47:09 +0000 (13:47 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Apr 2021 08:33:13 +0000 (08:33 +0000)
commit29cc19e54f482def8248703848b2663feb14b9da
treeca1b0130b49fa153cb9bbaa9e8473f8883934cf4
parent204bc8981f78206ad6c12ca628c59c3645ec0e0c
st/nine: Fix cubetexture early destruction

When the surface creation fails, the dtor
can face NULL pointers for the surfaces.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
src/gallium/frontends/nine/cubetexture9.c