1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-19 22:11:34 +00:00

Fix selection buffer

This commit is contained in:
scrawl 2013-03-07 21:38:27 +01:00
parent 17e406e58c
commit d696da7677

View file

@ -24,7 +24,8 @@ namespace Render
vp->setBackgroundColour(Ogre::ColourValue(0, 0, 0, 0)); vp->setBackgroundColour(Ogre::ColourValue(0, 0, 0, 0));
vp->setShadowsEnabled(false); vp->setShadowsEnabled(false);
vp->setMaterialScheme("selectionbuffer"); vp->setMaterialScheme("selectionbuffer");
vp->setVisibilityMask (visibilityFlags); if (visibilityFlags != 0)
vp->setVisibilityMask (visibilityFlags);
mRenderTarget->setActive(true); mRenderTarget->setActive(true);
mRenderTarget->setAutoUpdated (false); mRenderTarget->setAutoUpdated (false);