diff options
author | Brian Paul <[email protected]> | 2008-05-20 15:11:53 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-20 15:11:53 -0600 |
commit | ac09b0e0eb30f6691e35638f210c04ac0f867ea8 (patch) | |
tree | a204158f679dd20e807f83194e8a850329ded7a7 /src/mesa/state_tracker | |
parent | 417719c0a6397decd11780a643cb546ddd8f78d4 (diff) |
gallium: fix shader mem leak
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bitmap.c | 4 |
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; |