summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-19 09:03:19 -0600
committerBrian Paul <brianp@vmware.com>2009-06-17 11:30:02 -0600
commit9e7ddd086ffe8a2e3fa0d41fa441d802964c75d9 (patch)
treef22c15e61bfdf15f510ec92dc7b2a1f8ede0e898
parent631d5b479825caa5aa739267c716bc8d540cbfed (diff)
mesa: fix texture object reference counting in texture_override()
Fixes bug 21756: r200: Mesa-7.4.2 release regression: "Quit on exit".
-rw-r--r--src/mesa/main/texstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 348a2d9e63..efff065466 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -429,7 +429,7 @@ texture_override(GLcontext *ctx,
}
if (texObj->_Complete) {
texUnit->_ReallyEnabled = textureBit;
- texUnit->_Current = texObj;
+ _mesa_reference_texobj(&texUnit->_Current, texObj);
update_texture_compare_function(ctx, texObj);
}
}