Merge pull request #30633 from creikey/fix-headless-export-crash
Fix headless export crash
This commit is contained in:
commit
e30a137548
2 changed files with 5 additions and 0 deletions
|
@ -88,6 +88,8 @@ Error OS_Server::initialize(const VideoMode &p_desired, int p_video_driver, int
|
|||
visual_server = memnew(VisualServerRaster);
|
||||
visual_server->init();
|
||||
|
||||
camera_server = memnew(CameraServer);
|
||||
|
||||
AudioDriverManager::initialize(p_audio_driver);
|
||||
|
||||
input = memnew(InputDefault);
|
||||
|
@ -117,6 +119,8 @@ void OS_Server::finalize() {
|
|||
|
||||
memdelete(input);
|
||||
|
||||
memdelete(camera_server);
|
||||
|
||||
memdelete(power_manager);
|
||||
|
||||
ResourceLoader::remove_resource_format_loader(resource_loader_dummy);
|
||||
|
|
|
@ -74,6 +74,7 @@ class OS_Server : public OS_Unix {
|
|||
#endif
|
||||
|
||||
CrashHandler crash_handler;
|
||||
CameraServer *camera_server;
|
||||
|
||||
int video_driver_index;
|
||||
|
||||
|
|
Loading…
Reference in a new issue