mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
softpipe: fix a warning due to an incorrect enum comparison
no change in behavior, because both are defined the same Acked-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
c9e5a7df61
commit
c3b88cc2c1
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ get_dimensions(const struct pipe_image_view *iview,
|
|||
*width = u_minify(spr->base.width0, level);
|
||||
*height = u_minify(spr->base.height0, level);
|
||||
|
||||
if (spr->base.target == TGSI_TEXTURE_3D)
|
||||
if (spr->base.target == PIPE_TEXTURE_3D)
|
||||
*depth = u_minify(spr->base.depth0, level);
|
||||
else
|
||||
*depth = spr->base.array_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue