1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Do not copy due to auto misuse

This commit is contained in:
Andrei Kortunov 2024-01-07 18:52:10 +04:00
parent eedb96863e
commit 828c40c710
2 changed files with 2 additions and 3 deletions

View File

@ -154,7 +154,7 @@ bool Launcher::GraphicsPage::loadSettings()
if (Settings::shadows().mEnableIndoorShadows) if (Settings::shadows().mEnableIndoorShadows)
indoorShadowsCheckBox->setCheckState(Qt::Checked); indoorShadowsCheckBox->setCheckState(Qt::Checked);
auto boundMethod = Settings::shadows().mComputeSceneBounds.get(); const auto& boundMethod = Settings::shadows().mComputeSceneBounds.get();
if (boundMethod == "bounds") if (boundMethod == "bounds")
shadowComputeSceneBoundsComboBox->setCurrentIndex(0); shadowComputeSceneBoundsComboBox->setCurrentIndex(0);
else if (boundMethod == "primitives") else if (boundMethod == "primitives")

View File

@ -315,8 +315,7 @@ namespace Stereo
else else
{ {
auto* ds = osg::DisplaySettings::instance().get(); auto* ds = osg::DisplaySettings::instance().get();
auto viewMatrix = mMainCamera->getViewMatrix(); const auto& projectionMatrix = mMainCamera->getProjectionMatrix();
auto projectionMatrix = mMainCamera->getProjectionMatrix();
auto s = ds->getEyeSeparation() * Constants::UnitsPerMeter; auto s = ds->getEyeSeparation() * Constants::UnitsPerMeter;
mViewOffsetMatrix[0] mViewOffsetMatrix[0]
= osg::Matrixd(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, s, 0.0, 0.0, 1.0); = osg::Matrixd(1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, s, 0.0, 0.0, 1.0);