Fix crash when closing in RTT screen
This commit is contained in:
parent
dc168e1b13
commit
dfd6a1820d
@ -9,6 +9,7 @@
|
||||
#include "ge_vulkan_texture.hpp"
|
||||
#include "ge_vulkan_command_loader.hpp"
|
||||
|
||||
#include "ICameraSceneNode.h"
|
||||
#include "ISceneManager.h"
|
||||
#include "IrrlichtDevice.h"
|
||||
|
||||
@ -586,6 +587,12 @@ void GEVulkanDriver::destroyVulkan()
|
||||
m_transparent_texture = NULL;
|
||||
}
|
||||
|
||||
if (m_irrlicht_device->getSceneManager() &&
|
||||
m_irrlicht_device->getSceneManager()->getActiveCamera())
|
||||
{
|
||||
m_irrlicht_device->getSceneManager()->setActiveCamera(NULL);
|
||||
}
|
||||
|
||||
if (m_irrlicht_device->getSceneManager() &&
|
||||
m_irrlicht_device->getSceneManager()->getMeshCache())
|
||||
getVulkanMeshCache()->destroy();
|
||||
|
Loading…
Reference in New Issue
Block a user