st/nine: Fix crash when deleting non-implicit swapchain
authorAxel Davy <axel.davy@ens.fr>
Tue, 2 Dec 2014 23:07:26 +0000 (00:07 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 22:16:18 +0000 (22:16 +0000)
commit0d2c22e64844e20f9a52bffe2b934079a4121886
tree277ecd5d03a1b09d42d858f6613b7672c3ec0b2c
parent92321611787207f8f2c02a226c1370f85cb99573
st/nine: Fix crash when deleting non-implicit swapchain

The implicit swapchains are destroyed when the device instance is
destroyed. However for non-implicit swapchains, it is not the case,
and the application can have kept an reference on the swapchain
buffers to reuse them.

Fixes problems with battle.net launcher.

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
Tested-by: Nick Sarnie <commendsarnex@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/swapchain9.c