mesa: replace _mesa_get_current_fixedfunc_tex_unit with _mesa_get_fixedfunc_tex_unit
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 29 Apr 2019 17:23:36 +0000 (19:23 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 6 Aug 2019 21:02:52 +0000 (17:02 -0400)
commit58030d2b3ded667585f4f5e7bc459008f7ba7e8f
treef3dde92d24711e041a97a2d60dc72d2ee01bed67
parentb4c54894bba085966c52cb515bd72927e4ec4939
mesa: replace _mesa_get_current_fixedfunc_tex_unit with _mesa_get_fixedfunc_tex_unit

The new function implements the same feature but doesn't depend
on ctx->Texture.CurrentUnit.
This change allows to use it from indexed functions.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/enable.c
src/mesa/main/texenv.c
src/mesa/main/texgen.c
src/mesa/main/texstate.h