mesa: throw an INVALID_OPERATION error in get_texobj_by_name()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 29 May 2017 12:07:31 +0000 (14:07 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 31 May 2017 10:01:19 +0000 (12:01 +0200)
commitc222fa9ada88980e5613dbca6217219cf0d62d4a
tree4005a17d29259a6222acd2954e42716ab4b025a9
parentb9c3ce529f577938815e0b1ae826fd6566de1bab
mesa: throw an INVALID_OPERATION error in get_texobj_by_name()

Because get_texobj_by_name() can already throw a INVALID_ENUM
error, it makes more sense to add a check directly there.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/texparam.c