From b6d683680f56c210a22f110276b437488e08c988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nos=20Tur=C3=A1nszki?= Date: Sun, 22 Feb 2026 18:57:30 +0100 Subject: [PATCH] metal graphics device fix --- WickedEngine/wiGraphicsDevice_Metal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WickedEngine/wiGraphicsDevice_Metal.cpp b/WickedEngine/wiGraphicsDevice_Metal.cpp index bb8f7b724..2da8ea989 100644 --- a/WickedEngine/wiGraphicsDevice_Metal.cpp +++ b/WickedEngine/wiGraphicsDevice_Metal.cpp @@ -665,7 +665,7 @@ namespace metal_internal uint32_t firstSlice = 0; uint32_t sliceCount = 0; - bool IsValid() const { return entry.textureViewID != 0; } + bool IsValid() const { return entry.textureViewID != 0 || mipCount > 0 || sliceCount > 0; } }; Subresource srv; Subresource uav;