From 04fa003a501298500607c4e83e58cb0291ddc6e4 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 24 May 2006 03:34:17 +0000 Subject: [PATCH] The ctx->_TexEnvProgram that's allocated in update_state() doesn't seem to be needed (it's set in texenvprogram.c) and is a memory leak according to valgrind. Disable with #if 0 / #endif --- src/mesa/main/state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 34eb2c3b8a1..dbf0834df45 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -946,11 +946,12 @@ update_program(GLcontext *ctx) ctx->FragmentProgram._Active = ctx->FragmentProgram._Enabled; if (ctx->_MaintainTexEnvProgram && !ctx->FragmentProgram._Enabled) { +#if 0 if (!ctx->_TexEnvProgram) ctx->_TexEnvProgram = (struct fragment_program *) ctx->Driver.NewProgram(ctx, GL_FRAGMENT_PROGRAM_ARB, 0); - ctx->FragmentProgram._Current = ctx->_TexEnvProgram; +#endif if (ctx->_UseTexEnvProgram) ctx->FragmentProgram._Active = GL_TRUE; -- 2.30.2