main: Added utility function _mesa_lookup_texture_err().
authorLaura Ekstrand <laura@jlekstrand.net>
Thu, 4 Dec 2014 01:47:32 +0000 (17:47 -0800)
committerLaura Ekstrand <laura@jlekstrand.net>
Thu, 8 Jan 2015 19:37:28 +0000 (11:37 -0800)
commit60e3bfddaf6ab4f8385561654dfe4e0034d8bc9d
tree2aadeaf3577c0a557a71c204e46cd6172a410402
parent56875181c75da2c537410313fac917b75c13dfd0
main: Added utility function _mesa_lookup_texture_err().

Most ARB_DIRECT_STATE_ACCESS functions take an object's ID and use it to look
up the object in its hash table.  If the user passes a fake object ID (ie. a
non-generated name), the implementation should throw INVALID_OPERATION.
This is a convenience function for texture objects.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/texobj.c
src/mesa/main/texobj.h