summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-05-24 03:34:17 +0000
committerBrian Paul <[email protected]>2006-05-24 03:34:17 +0000
commit04fa003a501298500607c4e83e58cb0291ddc6e4 (patch)
tree81fa6055e2c68813a37a27f021c4d3bfe463aaab /src/mesa/main
parent65a51c0d6243f07491578e95b85bc483f923b817 (diff)
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
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/state.c3
1 files changed, 2 insertions, 1 deletions
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;