mesa: add missing FEATURE_attrib_stack around
authorAlan Hourihane <alanh@tungstengraphics.com>
Fri, 19 Sep 2008 13:55:49 +0000 (14:55 +0100)
committerAlan Hourihane <alanh@tungstengraphics.com>
Fri, 19 Sep 2008 13:55:49 +0000 (14:55 +0100)
      call to _mesa_free_attrib_data()

src/mesa/main/context.c

index 96a8c30106a27e5206f8ede556857790b9a26b87..564139a8654d8379ed7ac98db64cc1fd6a02f75f 100644 (file)
@@ -1316,7 +1316,9 @@ _mesa_free_context_data( GLcontext *ctx )
    _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current, NULL);
    _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._TexEnvProgram, NULL);
 
+#if FEATURE_attrib_stack
    _mesa_free_attrib_data(ctx);
+#endif
    _mesa_free_lighting_data( ctx );
 #if FEATURE_evaluators
    _mesa_free_eval_data( ctx );