mesa: Reject ResumeTransformFeedback if the wrong program is bound.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 6 Sep 2013 21:51:26 +0000 (14:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Sep 2013 17:19:09 +0000 (10:19 -0700)
commit9cc74c93f8983f978e7315e021eb59dfaca6404b
tree2dfdb23d60826ae12d982b7d68d747e5d5c14ae9
parentc732f68cf4aca06bac03e6a70c49047057c0c357
mesa: Reject ResumeTransformFeedback if the wrong program is bound.

This is actually a pretty important error condition: otherwise, you
could set up transform feedback with one program, and resume it with
a program that generates a completely different set of outputs.

Fixes a subcase of Piglit's new ARB_transform_feedback2 api-errors test.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/transformfeedback.c