I'm testing some more complex scenarios. I have several Application states like a MenuState, GameState. First the MenuState is called with its scenemanager, and workspace. When the user starts the game, I push the GameState on the top of the MenuState (creating new scenemanager, camera and adding a workspace) and not deleting anything from the MenuState.
Code: Select all
addWorkspace(this->sceneManager, Core::getSingletonPtr()->getOgreRenderWindow()->getTexture(), camera, "NOWAPbsWorkspace", true);
Several places are triggered:
OgreHlms.cpp:
Code: Select all
if( sceneManager->getCamerasInProgress().renderingCamera->getNeedsDepthClamp() )
Code: Select all
CamerasInProgress cameras = sceneManager->getCamerasInProgress();
mConstantBiasScale = cameras.renderingCamera->_getConstantBiasScale();
Matrix4 viewMatrix = cameras.renderingCamera->getVrViewMatrix( 0 );
Code: Select all
mConstantBiasScale = cameras.renderingCamera->_getConstantBiasScale();
Matrix4 viewMatrix = cameras.renderingCamera->getViewMatrix(true);
Matrix4 projectionMatrix = cameras.renderingCamera->getProjectionMatrixWithRSDepth();
Is this an Ogre bug? Because I have no idea, how to solve this on my side.
Best Regards
Lax