Fix crash when getActiveCamera is used after rendering scene
This commit is contained in:
parent
4335d95215
commit
5252c78a05
@ -85,6 +85,8 @@ void FixedPipelineRenderer::render(float dt, bool is_loading)
|
||||
for(unsigned int i=0; i<Camera::getNumCameras(); i++)
|
||||
{
|
||||
Camera *camera = Camera::getCamera(i);
|
||||
irr_driver->getSceneManager()->setActiveCamera(
|
||||
camera->getCameraSceneNode());
|
||||
std::ostringstream oss;
|
||||
oss << "renderPlayerView() for kart " << i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user