mirror of
https://github.com/overte-org/overte.git
synced 2025-04-05 19:00:28 +02:00
wrong config
This commit is contained in:
parent
c4cf2ba483
commit
9009ba3681
1 changed files with 1 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue