From c47d78c3b64275ca2bc1d836efe94fb7503973d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?furby=E2=84=A2?= Date: Tue, 17 Sep 2024 13:11:04 -0600 Subject: [PATCH] UsdView: Fix conditional compilation of engine. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: furby™ --- Sources/UsdView/Hydra/Hydra+RenderEngine.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/UsdView/Hydra/Hydra+RenderEngine.swift b/Sources/UsdView/Hydra/Hydra+RenderEngine.swift index a1828791f..c8f20809e 100644 --- a/Sources/UsdView/Hydra/Hydra+RenderEngine.swift +++ b/Sources/UsdView/Hydra/Hydra+RenderEngine.swift @@ -25,7 +25,7 @@ public enum Hydra { self.stage = stage - #if canImport(HgiMetal) && canImport(UsdImagingGL) + #if !os(Linux) && !os(Windows) && !os(Android) && canImport(HgiMetal) && canImport(UsdImagingGL) engine = Hydra.MTLRenderer(stage: stage) #elseif canImport(HgiGL) && canImport(UsdImagingGL) engine = Hydra.GLRenderer(stage: stage)