mesa: fix proxy texture target initialization
authorBrian Paul <brianp@vmware.com>
Thu, 9 Feb 2012 16:20:08 +0000 (09:20 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Feb 2012 15:08:39 +0000 (08:08 -0700)
commitd925b0d4a72147d3bc34e7ba068d48179be93021
treed1d6e88fc66dd5659d0dfa4cc23adaa47304cdac
parent3e59fb570ae82d988a90d341d1ffdd5c3ece1aa4
mesa: fix proxy texture target initialization

The mapping from TEXTURE_x_INDEX to GL_TEXTURE_x was broken in
alloc_proxy_textures() because the elements in the targets[] array
were in the wrong order.

This didn't actually cause any failures since we never really use the
proxy texture's Target field.  But let's get it right.

NOTE: This is a candidate for the 8.0 branch.
src/mesa/main/texstate.c