aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-22 09:12:02 -0600
committerBrian <[email protected]>2008-03-22 09:12:02 -0600
commitf73cfd9e5cb0f47057f5b78b019787726798f238 (patch)
tree1d61b89736cee7d45a25821207c3121cd147ad13 /src/mesa/main/context.c
parent4e977fb35befa60b2f74a21c0c9818854e6a7c85 (diff)
delete default programs with ctx->Driver.DeleteProgram()
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index a9f9bd9da44..d06644f65dd 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -695,10 +695,10 @@ free_shared_state( GLcontext *ctx, struct gl_shared_state *ss )
_mesa_DeleteHashTable(ss->Programs);
#endif
#if FEATURE_ARB_vertex_program
- _mesa_delete_program(ctx, ss->DefaultVertexProgram);
+ ctx->Driver.DeleteProgram(ctx, ss->DefaultVertexProgram);
#endif
#if FEATURE_ARB_fragment_program
- _mesa_delete_program(ctx, ss->DefaultFragmentProgram);
+ ctx->Driver.DeleteProgram(ctx, ss->DefaultFragmentProgram);
#endif
#if FEATURE_ATI_fragment_shader