Fix crash when getActiveCamera is used after rendering scene

This commit is contained in:
Benau 2022-09-05 09:54:42 +08:00
parent 4335d95215
commit 5252c78a05

View File

@ -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;