Mesa (master): mesa: free the fallback texture object in free_shared_state( )

Brian Paul brianp at kemper.freedesktop.org
Fri Aug 27 16:52:08 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
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
     */




More information about the mesa-commit mailing list