mesa: consolidate texture binding code
authorBrian Paul <brianp@vmware.com>
Wed, 30 Sep 2015 17:29:13 +0000 (11:29 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 1 Oct 2015 13:45:43 +0000 (07:45 -0600)
commitc277fa394087272c79d65fc308d268fc768b91e5
tree60d06feb9b962fe399a89e9e4e281a7c9e92e757
parent78f908c54bc65a6433a47244aef45d234d909b3b
mesa: consolidate texture binding code

Before, we were doing the actual _mesa_reference_texobj() call and
ctx->Driver.BindTexture() and misc housekeeping in three different
places.  This consolidates the common code in a new bind_texture()
function.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/texobj.c