From: Brian Date: Sat, 22 Mar 2008 15:12:02 +0000 (-0600) Subject: delete default programs with ctx->Driver.DeleteProgram() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f73cfd9e5cb0f47057f5b78b019787726798f238;p=mesa.git delete default programs with ctx->Driver.DeleteProgram() --- 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