mesa: print more info when valid_texture_object() fails

This commit is contained in:
Brian Paul 2009-05-19 09:21:27 -06:00
parent bd59dd69ba
commit 43d8ace88d

View 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;
}
}