mesa: handle no-op cases sooner in _mesa_[Client]ActiveTexture()
authorBrian Paul <brianp@vmware.com>
Mon, 3 Aug 2015 21:06:42 +0000 (15:06 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 6 Aug 2015 13:38:47 +0000 (07:38 -0600)
commit115964052b25a958b2ad4ec42ae07133b2768cf9
tree5a68b50053060baf852b849f912b1b31073af9fc
parentee977183dcb543c919d0d70dde610cb191d5a3ea
mesa: handle no-op cases sooner in _mesa_[Client]ActiveTexture()

If the new texture unit is the current texture unit, we can return
before error checking.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/texstate.c