mesa: move _mesa_get_current_tex_object after target checks
With this, I don't get any more _mesa_problem's from _mesa_get_current_tex_object on dEQP GLES2/GLES3 runs.
Edited by Ilia Mirkin
With this, I don't get any more _mesa_problem's from _mesa_get_current_tex_object on dEQP GLES2/GLES3 runs.