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:
parent
d4d899a56b
commit
189fc51811
2 changed files with 3 additions and 2 deletions
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue