From 9009ba3681d2e4a2b524d070d7b12c65cd8ef1be Mon Sep 17 00:00:00 2001 From: HifiExperiments Date: Wed, 30 Oct 2024 16:19:47 -0700 Subject: [PATCH] wrong config --- interface/src/scripting/RenderScriptingInterface.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/interface/src/scripting/RenderScriptingInterface.cpp b/interface/src/scripting/RenderScriptingInterface.cpp index 1e8b1145b0..221a7bf308 100644 --- a/interface/src/scripting/RenderScriptingInterface.cpp +++ b/interface/src/scripting/RenderScriptingInterface.cpp @@ -406,23 +406,19 @@ void RenderScriptingInterface::forceViewportResolutionScale(float scale) { auto renderConfig = qApp->getRenderEngine()->getConfiguration(); assert(renderConfig); auto deferredView = renderConfig->getConfig("RenderMainView.RenderDeferredTask"); - // mainView can be null if we're rendering in forward mode if (deferredView) { deferredView->setProperty("resolutionScale", scale); } auto forwardView = renderConfig->getConfig("RenderMainView.RenderForwardTask"); - // mainView can be null if we're rendering in forward mode if (forwardView) { forwardView->setProperty("resolutionScale", scale); } auto deferredSecondView = renderConfig->getConfig("RenderSecondView.RenderDeferredTask"); - // mainView can be null if we're rendering in forward mode if (deferredSecondView) { deferredSecondView->setProperty("resolutionScale", scale); } - auto forwardSecondView = renderConfig->getConfig("RenderMainView.RenderForwardTask"); - // mainView can be null if we're rendering in forward mode + auto forwardSecondView = renderConfig->getConfig("RenderSecondView.RenderForwardTask"); if (forwardSecondView) { forwardSecondView->setProperty("resolutionScale", scale); }