summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_program.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r--src/mesa/state_tracker/st_program.c4
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);
}