mesa: Optimize unbind_texobj_from_texunits()
authorFredrik Höglund <fredrik@kde.org>
Tue, 12 Nov 2013 16:34:35 +0000 (17:34 +0100)
committerFredrik Höglund <fredrik@kde.org>
Fri, 2 May 2014 00:53:25 +0000 (02:53 +0200)
commit30af8ce3f807f8a4990fa8c750038b1f75e5154f
tree12953b30318c126cf4a7b949cbe852e88bed3474
parent4bd82720880bef34895f34ac8141d0d9246b2b6d
mesa: Optimize unbind_texobj_from_texunits()

The texture can only be bound to the index that corresponds to its
target, so there is no need to loop over all possible indices
for every unit and checking if the texture is bound to it.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/texobj.c