mesa: remove unneeded error check in create_textures()
authorBrian Paul <brianp@vmware.com>
Sat, 3 Oct 2015 13:55:32 +0000 (07:55 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 8 Oct 2015 19:53:33 +0000 (13:53 -0600)
commitb373c776933c4d2d00947d92d595368f6d36bc96
tree7d91f01d99aeff2f65bf7e80d3a9fac38d00247d
parentc71f0d45e6d0081ea814fb0b16baec4e75a07bcb
mesa: remove unneeded error check in create_textures()

Callers of create_texture() will either pass target=0 or a validated
GL texture target enum so no need to do another error check inside
the loop.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
src/mesa/main/texobj.c