diff options
author | Kenneth Graunke <[email protected]> | 2013-09-06 15:41:19 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-09-12 10:19:10 -0700 |
commit | 2b71b3d4666b076ef45d03b9b4b4c527bda21e1c (patch) | |
tree | f56915e1c03885c3aea2157fa177dcb57afb2338 /src/mesa/main/remap.c | |
parent | 9cc74c93f8983f978e7315e021eb59dfaca6404b (diff) |
mesa: Disallow relinking if a program is used by an active XFB object.
Paused transform feedback objects may refer to a program other than the
current program. If any active objects refer to a program, LinkProgram
must reject the request to relink.
The code to detect this is ugly since _mesa_HashWalk is awkward to use,
but unfortunately we can't use hash_table_foreach since there's no way
to get at the underlying struct hash_table (and even then, we'd need to
handle locking somehow).
Fixes the last subcase of Piglit's new ARB_transform_feedback2
api-errors test.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/remap.c')
0 files changed, 0 insertions, 0 deletions