mesa: flip current tf object back to default if current is being deleted
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 6 Mar 2016 17:36:19 +0000 (12:36 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 7 Mar 2016 05:36:08 +0000 (00:36 -0500)
commit0941ef3dd57e692ee1a897ed83bd887d0cebdc63
tree044b87642c95ceb583acefa3724eb312e5371c02
parentf6827e20d12ab062440bc809b8f2338b68edac45
mesa: flip current tf object back to default if current is being deleted

In the rather unusual case of Bind + Delete, we need to make sure that
we unbind the current tf object.

Fixes dEQP-GLES3.functional.lifetime.delete_bound.transform_feedback

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/transformfeedback.c