diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-19 09:03:19 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-19 09:03:19 -0600 |
commit | 46a2aad2cfec0ae54bc1a3ba5aacf6f59065d64b (patch) | |
tree | 386cf497056efe367992b1a6af82a0e836dc7821 | |
parent | b5eafa2d51855b8fb3f36378a5478374daca28a7 (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.c | 2 |
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); } } |