summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-20 15:11:53 -0600
committerBrian Paul <[email protected]>2008-05-20 15:11:53 -0600
commitac09b0e0eb30f6691e35638f210c04ac0f867ea8 (patch)
treea204158f679dd20e807f83194e8a850329ded7a7
parent417719c0a6397decd11780a643cb546ddd8f78d4 (diff)
gallium: fix shader mem leak
-rw-r--r--src/mesa/state_tracker/st_cb_bitmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c
index edf4be172bc..e95ff5e2e0d 100644
--- a/src/mesa/state_tracker/st_cb_bitmap.c
+++ b/src/mesa/state_tracker/st_cb_bitmap.c
@@ -198,6 +198,10 @@ combined_bitmap_fragment_program(GLcontext *ctx)
_mesa_combine_programs(ctx,
&bitmap_prog->Base.Base, &stfp->Base.Base);
stfp->bitmap_program->bitmap_sampler = sampler;
+
+ /* done with this after combining */
+ st_reference_fragprog(st, &bitmap_prog, NULL);
+
#if 0
{
struct gl_program *p = &stfp->bitmap_program->Base.Base;