st/nine: Prevent crash in GetRenderTargetData
authorPatrick Rudolph <siro@das-labor.org>
Wed, 28 Sep 2016 16:50:19 +0000 (18:50 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:51 +0000 (23:43 +0200)
commit5d85253dc30cc26a40fa6f4a52cf61880827edee
treefa62f2c77c137a3ca25cbba6027644edea823520
parent09edc0555f91d76001b1ffc0e656b0614abb809a
st/nine: Prevent crash in GetRenderTargetData

Return error instead of crashing on source surfaces
with format D3DFMT_NULL.

Fix for issue #236.

Tested on Windows 7.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/device9.c