Module: Mesa
Branch: master
Commit: c8e0970667d2b4d92abe22bf099cafee4acb717b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8e0970667d2b4d92abe22bf099cafee4acb717b

Author: Brian Paul <[email protected]>
Date:   Fri Aug 27 10:51:47 2010 -0600

mesa: free the fallback texture object in free_shared_state()

---

 src/mesa/main/shared.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c
index cbe0045..ea7e503 100644
--- a/src/mesa/main/shared.c
+++ b/src/mesa/main/shared.c
@@ -288,6 +288,10 @@ free_shared_state(GLcontext *ctx, struct gl_shared_state 
*shared)
 {
    GLuint i;
 
+   /* Free the dummy/fallback texture object */
+   if (shared->FallbackTex)
+      ctx->Driver.DeleteTexture(ctx, shared->FallbackTex);
+
    /*
     * Free display lists
     */

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to