tgsi: fix tgsi_exec_machine_bind_shader() to handle NULL tokens, samplers
authorBrian Paul <brianp@vmware.com>
Thu, 6 May 2010 20:38:55 +0000 (14:38 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 6 May 2010 21:19:02 +0000 (15:19 -0600)
commitc8f0e805a9e4c26eadc45bb1fd172b6702f581ab
tree625ab76385db95c21c8828000173ec7812544af6
parentfbb1ad33a42f91797327a099d6565d1c201099b4
tgsi: fix tgsi_exec_machine_bind_shader() to handle NULL tokens, samplers

This lets us unbind a shader from the tgsi_exec_machine.  Since
shaders aren't ref counted we need this to properly clean up when
deleting shaders elsewhere.
src/gallium/auxiliary/tgsi/tgsi_exec.c