delete default programs with ctx->Driver.DeleteProgram()
authorBrian <brian.paul@tungstengraphics.com>
Sat, 22 Mar 2008 15:11:43 +0000 (09:11 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 22 Mar 2008 15:13:28 +0000 (09:13 -0600)
src/mesa/main/context.c

index 63dc1379e9b2cd3c0c2f520316c285fd5288e7a0..62d592767d195f616d94de1546bd9a686d3691c3 100644 (file)
@@ -706,10 +706,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