mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Fix for crash in main menu when reflections are enabled
This commit is contained in:
parent
db086a4d89
commit
58672c6bb5
@ -50,6 +50,7 @@ namespace MWRender
|
||||
|
||||
void Refraction::preRenderTargetUpdate(const Ogre::RenderTargetEvent& evt)
|
||||
{
|
||||
if (mParentCamera->isAttached())
|
||||
mParentCamera->getParentSceneNode ()->needUpdate ();
|
||||
mCamera->setOrientation(mParentCamera->getDerivedOrientation());
|
||||
mCamera->setPosition(mParentCamera->getDerivedPosition());
|
||||
|
@ -74,6 +74,7 @@ CubeReflection::~CubeReflection ()
|
||||
|
||||
void CubeReflection::update ()
|
||||
{
|
||||
if (mParentCamera->isAttached())
|
||||
mParentCamera->getParentSceneNode ()->needUpdate ();
|
||||
mCamera->setPosition(mParentCamera->getDerivedPosition());
|
||||
}
|
||||
@ -133,6 +134,7 @@ void PlaneReflection::renderQueueEnded (Ogre::uint8 queueGroupId, const Ogre::St
|
||||
|
||||
void PlaneReflection::preRenderTargetUpdate(const Ogre::RenderTargetEvent& evt)
|
||||
{
|
||||
if (mParentCamera->isAttached())
|
||||
mParentCamera->getParentSceneNode ()->needUpdate ();
|
||||
mCamera->setOrientation(mParentCamera->getDerivedOrientation());
|
||||
mCamera->setPosition(mParentCamera->getDerivedPosition());
|
||||
|
Loading…
x
Reference in New Issue
Block a user