diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-04-24 11:52:37 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-04-24 12:15:05 -0600 |
commit | f2c31257167f85df276322be1b8523064e8b66a9 (patch) | |
tree | 2f74009aed28f5e7ef132060960b9f593e3ae296 /progs/util/extfuncs.h | |
parent | 35dc003c6a0845a96934f9c222bd57bb62e0a62f (diff) |
gallium: added cso_delete_vertex_fragment_shader() functions
The state tracker now uses these functions to free shaders, rather than
the pipe->delete_vs/fs-state() functions. Before, we could get in a situation
where we free() a shader and happen to alloc() a new one at the same address.
The cso_set_vertex/fragment_shader() function would no-op the state change
since the pointers were the same. This led to problems elsewhere, of course.
The new delete functions null-out the CSO's current shader pointers.
Diffstat (limited to 'progs/util/extfuncs.h')
0 files changed, 0 insertions, 0 deletions