diff options
author | Brian Paul <[email protected]> | 2014-09-29 10:11:41 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-09-30 12:08:49 -0600 |
commit | 3bfc9a73ad0552999d237c300787a2772f163fb4 (patch) | |
tree | 2b3e12339d878a6beae5a7bb18a868d5198eaf77 /src/mesa/state_tracker | |
parent | 2b76ee903187e22c9fa013579004bc5f51c9a6d8 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c index 2cd95ecdfa4..5996b7d1b74 100644 --- a/src/mesa/state_tracker/st_texture.c +++ b/src/mesa/state_tracker/st_texture.c @@ -88,7 +88,7 @@ st_texture_create(struct st_context *st, pt.width0 = width0; pt.height0 = height0; pt.depth0 = depth0; - pt.array_size = (target == PIPE_TEXTURE_CUBE ? 6 : layers); + pt.array_size = layers; pt.usage = PIPE_USAGE_DEFAULT; pt.bind = bind; pt.flags = 0; |