Skip to content

Commit

Permalink
PagedGeometry: fix Ogre::Root retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Nov 9, 2024
1 parent 8a399e5 commit 5df6808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/PagedGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ template <class PageType> inline GeometryPageManager* PagedGeometry::addDetailLe
GeometryPageManager *mgr = new GeometryPageManager(this);

//If vertex shaders aren't supported, don't use transitions
Ogre::Root *root = root->getSingletonPtr(); //Work-around for Linux compiler bug
Ogre::Root *root = Ogre::Root::getSingletonPtr();
if (!root->getRenderSystem()->getCapabilities()->hasCapability(Ogre::RSC_VERTEX_PROGRAM))
transitionLength = 0;

Expand Down

0 comments on commit 5df6808

Please sign in to comment.