st/mesa: remove unneded PIPE_TEXTURE_CUBE check in st_texture_create()
authorBrian Paul <brianp@vmware.com>
Mon, 29 Sep 2014 16:11:41 +0000 (10:11 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Sep 2014 18:08:49 +0000 (12:08 -0600)
commit3bfc9a73ad0552999d237c300787a2772f163fb4
tree2b3e12339d878a6beae5a7bb18a868d5198eaf77
parent2b76ee903187e22c9fa013579004bc5f51c9a6d8
st/mesa: remove unneded PIPE_TEXTURE_CUBE check in st_texture_create()

Earlier in the function we assert layers==6 for PIPE_TEXTURE_CUBE so
there's no reason to special-case the pt.array_size = layers assignment.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_texture.c