mesa: consolidate texstore functions
authorBrian Paul <brianp@vmware.com>
Sat, 24 Dec 2011 15:54:27 +0000 (08:54 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 24 Dec 2011 16:25:41 +0000 (09:25 -0700)
commit5c818c6277247468ccf69abda00f5bc220b59644
treea54f20c00bd536eb1aa47ff1fb8671125237be4a
parentafebe13986e1ab69c8f80e957653b35aaee2269b
mesa: consolidate texstore functions

The code for storing 1D, 2D and 3D tex images (whole or sub-images) was
all pretty similar.  This consolidates those six paths.

v2: rework switch statement to catch unexpected targets

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/main/texstore.c