Skip to content

Commit

Permalink
Fix wide angle camera visibility flags
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Sep 6, 2023
1 parent 41f80fd commit 40c57ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ogre2/src/Ogre2WideAngleCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,9 @@ void Ogre2WideAngleCamera::CreateWideAngleTexture()
//////////////////////////////////////////////////
void Ogre2WideAngleCamera::Render()
{
const uint32_t currVisibilityMask = this->VisibilityMask();
// make sure we do not alter the reserved visibility flags
const uint32_t currVisibilityMask = this->VisibilityMask() &
Ogre::VisibilityFlags::RESERVED_VISIBILITY_FLAGS;
this->dataPtr->cubePassSceneDef->mVisibilityMask = currVisibilityMask;

this->scene->StartRendering(this->dataPtr->ogreCamera);
Expand Down

0 comments on commit 40c57ad

Please sign in to comment.