1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 07:45:31 +00:00

ref_ptr > unique_ptr

This commit is contained in:
Mads Buvik Sandvei 2020-10-08 18:46:52 +02:00
parent d4d899a56b
commit 189fc51811
2 changed files with 3 additions and 2 deletions

View file

@ -367,6 +367,7 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
, mScreenCaptureOperation(nullptr)
, mStereoEnabled(false)
, mStereoOverride(false)
, mStereoView(nullptr)
, mSkipMenu (false)
, mUseSound (true)
, mCompileAll (false)
@ -723,7 +724,7 @@ void OMW::Engine::prepareEngine (Settings::Manager & settings)
// Remove that altogether when the sky finally uses them.
auto noShaderMask = MWRender::VisMask::Mask_Sky | MWRender::VisMask::Mask_Sun | MWRender::VisMask::Mask_WeatherParticles;
auto geometryShaderMask = mViewer->getCamera()->getCullMask() & ~noShaderMask;
mStereoView.reset(new Misc::StereoView(mViewer, Misc::getStereoTechnique(), geometryShaderMask, noShaderMask | MWRender::VisMask::Mask_Scene));
mStereoView = new Misc::StereoView(mViewer, Misc::getStereoTechnique(), geometryShaderMask, noShaderMask | MWRender::VisMask::Mask_Scene);
}
window->setStore(mEnvironment.getWorld()->getStore());

View file

@ -93,7 +93,7 @@ namespace OMW
bool mStereoEnabled;
bool mStereoOverride;
std::unique_ptr<Misc::StereoView> mStereoView;
osg::ref_ptr<Misc::StereoView> mStereoView;
bool mSkipMenu;
bool mUseSound;