diff --git a/source/MaterialXRenderMsl/MetalState.h b/source/MaterialXRenderMsl/MetalState.h index ff742b857c..da88f7596e 100644 --- a/source/MaterialXRenderMsl/MetalState.h +++ b/source/MaterialXRenderMsl/MetalState.h @@ -56,7 +56,7 @@ struct MX_RENDERMSL_API MetalState id renderCmdEncoder = nil; std::stack framebufferStack; - bool supportsTiledPipeline; + bool supportsTiledPipeline = false; id opaqueDepthStencilState = nil; id transparentDepthStencilState = nil; diff --git a/source/MaterialXRenderMsl/MetalState.mm b/source/MaterialXRenderMsl/MetalState.mm index 3f378ae68a..2fdf539556 100644 --- a/source/MaterialXRenderMsl/MetalState.mm +++ b/source/MaterialXRenderMsl/MetalState.mm @@ -26,8 +26,6 @@ { supportsTiledPipeline = [device supportsFamily:MTLGPUFamilyApple4]; } -#else - supportsTiledPipeline = false; #endif MTLDepthStencilDescriptor* depthStencilDesc = [MTLDepthStencilDescriptor new];