mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
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>
This commit is contained in:
parent
2b76ee9031
commit
3bfc9a73ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue