Fast path when rebinding the same texture in single context environment
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 3 Jun 2009 16:49:05 +0000 (17:49 +0100)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 17 Jun 2009 19:55:26 +0000 (12:55 -0700)
commita70c45bdabd8a172de6c50167b3e9d99649db1fa
treec3361509a80b69578001711ea9db9554c3e5c628
parentff3da0966fc91cd5bcfed994e5edadbf25903c47
Fast path when rebinding the same texture in single context environment

If there is no shared context, there is no purpose in rebinding the same
texture.  In some artificial tests this improves performance 10% - 30%.
(cherry picked from commit 7f8000db8bd45bb95bda4a4f8535c49b8ef74254)
src/mesa/main/texobj.c