st/mesa: clarify some texture target code in st_cb_drawpix.c
authorBrian Paul <brianp@vmware.com>
Tue, 9 Feb 2016 21:44:54 +0000 (14:44 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 10 Feb 2016 00:48:26 +0000 (17:48 -0700)
commitcac54d7987ce1b878d41160f6429fb38e85a603c
tree328455b7cb990b40ab6f16c34756d81282b936c4
parent5e4de781fadea9e138e722c53a2e72eeb1d41a5a
st/mesa: clarify some texture target code in st_cb_drawpix.c

Use st->internal_target instead of PIPE_TEXTURE_2D when choosing the
texture format.  Probably no real difference, but let's be consistent.

Simplify a test when determining whether we need normalized texcoords.

Add a new assertion.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_cb_drawpixels.c