st/nine: Add pool check to SetTexture (v2)
authorAxel Davy <axel.davy@ens.fr>
Mon, 24 Nov 2014 23:38:06 +0000 (00:38 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 26 Nov 2014 20:09:11 +0000 (20:09 +0000)
commit4eea2496bcb573d730f84f34fb76db3e1ec2e733
tree61c8008f434fab73c9cbe78335cf827c6246cced
parent890f963d649cd85a0b0199f49384a41cc0e3636e
st/nine: Add pool check to SetTexture (v2)

D3DPOOL_SCRATCH is disallowed according to spec.
D3DPOOL_SYSTEMMEM should be allowed but we don't handle it right for now.

v2: Fixes segfault in SetTexture when unsetting the texture

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
Tested-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/device9.c