diff options
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 2 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_program.h | 10 |
2 files changed, 1 insertions, 11 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 8279562fa81..549afb3168e 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -1046,7 +1046,7 @@ st_destroy_context(struct st_context *st) st_reference_vertprog(st, &st->vp, NULL); st_reference_prog(st, &st->tcp, NULL); st_reference_prog(st, &st->tep, NULL); - st_reference_compprog(st, &st->cp, NULL); + st_reference_prog(st, &st->cp, NULL); /* release framebuffer in the winsys buffers list */ LIST_FOR_EACH_ENTRY_SAFE_REV(stfb, next, &st->winsys_buffers, head) { diff --git a/src/mesa/state_tracker/st_program.h b/src/mesa/state_tracker/st_program.h index 096486b7c49..17271ac7323 100644 --- a/src/mesa/state_tracker/st_program.h +++ b/src/mesa/state_tracker/st_program.h @@ -343,16 +343,6 @@ st_reference_prog(struct st_context *st, (struct gl_program *) prog); } -static inline void -st_reference_compprog(struct st_context *st, - struct st_common_program **ptr, - struct st_common_program *prog) -{ - _mesa_reference_program(st->ctx, - (struct gl_program **) ptr, - (struct gl_program *) prog); -} - /** * This defines mapping from Mesa VARYING_SLOTs to TGSI GENERIC slots. */ |