From ef4c4a76fcd39a3e5b796f3b7fb01fc3a4ccd29d Mon Sep 17 00:00:00 2001 From: Grant Commodore Date: Thu, 25 Jul 2024 00:31:51 -0700 Subject: [PATCH] Only sets the layercount if the view has stereo and the stereoscopic type is multiview (#7987) Co-authored-by: Powei Feng --- filament/src/RendererUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filament/src/RendererUtils.cpp b/filament/src/RendererUtils.cpp index 2e252633c4..f5a7238753 100644 --- a/filament/src/RendererUtils.cpp +++ b/filament/src/RendererUtils.cpp @@ -172,7 +172,7 @@ FrameGraphId RendererUtils::colorPass( data.color = builder.write(data.color, FrameGraphTexture::Usage::COLOR_ATTACHMENT); data.depth = builder.write(data.depth, FrameGraphTexture::Usage::DEPTH_ATTACHMENT); - if (engine.getConfig().stereoscopicType == StereoscopicType::MULTIVIEW) { + if (view.hasStereo() && engine.getConfig().stereoscopicType == StereoscopicType::MULTIVIEW) { layerCount = engine.getConfig().stereoscopicEyeCount; }