@@ -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 |