summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/program.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-12-26 06:57:24 -0700
committerBrian <[email protected]>2008-01-01 10:21:21 -0700
commit1631a9513d32ddcc5467225ad25d0e7a154af895 (patch)
tree8bbdc09ab27a39dc6e3f609191fe1a9136c10da6 /src/mesa/shader/program.c
parentf44e2f14d24b6d2730e7ff85e96695867ee96cbe (diff)
free program caches
Diffstat (limited to 'src/mesa/shader/program.c')
-rw-r--r--src/mesa/shader/program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c
index f13aa18e950..fc53b5737cb 100644
--- a/src/mesa/shader/program.c
+++ b/src/mesa/shader/program.c
@@ -101,6 +101,7 @@ _mesa_free_program_data(GLcontext *ctx)
if (ctx->VertexProgram.Current->Base.RefCount <= 0)
ctx->Driver.DeleteProgram(ctx, &(ctx->VertexProgram.Current->Base));
}
+ _mesa_delete_program_cache(ctx, ctx->VertexProgram.Cache);
#endif
#if FEATURE_NV_fragment_program || FEATURE_ARB_fragment_program
if (ctx->FragmentProgram.Current) {
@@ -108,6 +109,7 @@ _mesa_free_program_data(GLcontext *ctx)
if (ctx->FragmentProgram.Current->Base.RefCount <= 0)
ctx->Driver.DeleteProgram(ctx, &(ctx->FragmentProgram.Current->Base));
}
+ _mesa_delete_program_cache(ctx, ctx->FragmentProgram.Cache);
#endif
/* XXX probably move this stuff */
#if FEATURE_ATI_fragment_shader