st/nine: Fix present_buffers allocation
authorAxel Davy <axel.davy@ens.fr>
Sat, 17 Jan 2015 12:43:38 +0000 (13:43 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:19 +0000 (00:07 +0100)
commit8b901e3011c268d0a093a65b072bb51db0dcd251
tree2ccd55d543839a61e161e15461bb2edc607020e1
parent792af626d4e82dae728801ee6ca8c4c0f3d37f68
st/nine: Fix present_buffers allocation

If has_present_buffers was false at first,
but after a device reset, it turns true (for
example if we begin to render to a multisampled
back buffer), there was a crash due to present_buffers
being uninitialised.
This patch fixes it.

Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/swapchain9.c