From 5cdcf9d46736b5506539a6c02c2375f4108e3e22 Mon Sep 17 00:00:00 2001 From: Jon Creighton Date: Mon, 15 May 2023 13:36:24 +0100 Subject: [PATCH] Mipmap check should be any of the dimensions > 1, not all. --- pxr/imaging/hgiMetal/blitCmds.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pxr/imaging/hgiMetal/blitCmds.mm b/pxr/imaging/hgiMetal/blitCmds.mm index 3299db3da2..5a702a6813 100644 --- a/pxr/imaging/hgiMetal/blitCmds.mm +++ b/pxr/imaging/hgiMetal/blitCmds.mm @@ -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; }