mesa: print more info when valid_texture_object() fails
authorBrian Paul <brianp@vmware.com>
Tue, 19 May 2009 15:21:27 +0000 (09:21 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 19 May 2009 15:21:39 +0000 (09:21 -0600)
src/mesa/main/texobj.c

index 0024efc0e64cab1ce8a5d5685d795a8b4c4e9472..d51e7b76ec7594faf921c1d85b5848bcddf77bb6 100644 (file)
@@ -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;
    }
 }