diff options
author | Ian Romanick <[email protected]> | 2011-08-20 15:00:36 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-10-07 16:39:50 -0700 |
commit | de772c402215b956ab3aa0875330fc1bf7cdf95b (patch) | |
tree | 218fb8b814d144ceccb08a0f7ebe6640fa8bf675 /src/mesa/state_tracker/st_program.c | |
parent | 39348bf79fb247eec895c93e52f23afe138be46a (diff) |
mesa: Use gl_shader_program::_LinkedShaders instead of FragmentProgram
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index ba9980854d0..4162bb99abf 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -1155,8 +1155,8 @@ destroy_shader_program_variants_cb(GLuint key, void *data, void *userData) destroy_program_variants(st, shProg->_LinkedShaders[MESA_SHADER_VERTEX]->Program); - destroy_program_variants(st, (struct gl_program *) - shProg->FragmentProgram); + destroy_program_variants(st, + shProg->_LinkedShaders[MESA_SHADER_FRAGMENT]->Program); destroy_program_variants(st, shProg->_LinkedShaders[MESA_SHADER_GEOMETRY]->Program); } |