Skip to content

Commit

Permalink
Mipmap check should be any of the dimensions > 1, not all.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Creighton committed Jun 12, 2023
1 parent f1116dd commit 5cdcf9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pxr/imaging/hgiMetal/blitCmds.mm
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@
bool const is3DTex = (type == HgiTextureType3D);
HgiFormat const format = descriptor.format;
bool const dimensionsCompatible =
(is1DTex && dims[0] > 1) ||
(is2DTex && dims[0] > 1 && dims[1] > 1) ||
(is3DTex && dims[0] > 1 && dims[1] > 1 && dims[2] > 1);
(is1DTex && (dims[0] > 1)) ||
(is2DTex && (dims[0] > 1 || dims[1] > 1)) ||
(is3DTex && (dims[0] > 1 || dims[1] > 1 || dims[2] > 1));

return dimensionsCompatible;
}
Expand Down

0 comments on commit 5cdcf9d

Please sign in to comment.