st/mesa: simplify some code in get_texture_format_swizzle()
authorBrian Paul <brianp@vmware.com>
Fri, 23 Sep 2016 18:18:46 +0000 (12:18 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 6 Oct 2016 17:29:31 +0000 (11:29 -0600)
commitb3c89351659646be12763133535e360ea57a6058
tree997e1c2db5eef31d06be3a0ca7f6b8d3885b75bd
parent9add37b1007eb0dcb071c706e3b27300d91bb4ad
st/mesa: simplify some code in get_texture_format_swizzle()

There's no need to cast to st_texture_image.  Just use gl_texture_image.

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_atom_texture.c