Mesa (master): mesa: print more info when valid_texture_object() fails

Brian Paul brianp at kemper.freedesktop.org
Tue May 19 15:21:56 UTC 2009


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

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

mesa: print more info when valid_texture_object() fails

---

 src/mesa/main/texobj.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index 0024efc..d51e7b7 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -281,7 +281,8 @@ valid_texture_object(const struct gl_texture_object *tex)
       _mesa_problem(NULL, "invalid reference to a deleted texture object");
       return GL_FALSE;
    default:
-      _mesa_problem(NULL, "invalid texture object Target value");
+      _mesa_problem(NULL, "invalid texture object Target 0x%x, Id = %u",
+                    tex->Target, tex->Name);
       return GL_FALSE;
    }
 }




More information about the mesa-commit mailing list