Mesa (mesa_7_4_branch): mesa: fix texture object reference counting in texture_override()

Brian Paul brianp at kemper.freedesktop.org
Tue May 19 15:07:41 UTC 2009


Module: Mesa
Branch: mesa_7_4_branch
Commit: 46a2aad2cfec0ae54bc1a3ba5aacf6f59065d64b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=46a2aad2cfec0ae54bc1a3ba5aacf6f59065d64b

Author: Brian Paul <brianp at vmware.com>
Date:   Tue May 19 09:03:19 2009 -0600

mesa: fix texture object reference counting in texture_override()

Fixes bug 21756: r200: Mesa-7.4.2 release regression: "Quit on exit".

---

 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 348a2d9..efff065 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);
       }
    }




More information about the mesa-commit mailing list