mirror of
https://github.com/godotengine/godot
synced 2024-11-02 11:59:10 +00:00
Fix Crash On Close When 3D Is Disabled
This commit is contained in:
parent
f05dce3ee2
commit
fc65cc64b9
1 changed files with 4 additions and 0 deletions
|
@ -782,7 +782,11 @@ void unregister_scene_types() {
|
|||
ResourceLoader::remove_resource_format_loader(resource_loader_bmfont);
|
||||
resource_loader_bmfont.unref();
|
||||
|
||||
//SpatialMaterial is not initialised when 3D is disabled, so it shouldn't be cleaned up either
|
||||
#ifndef _3D_DISABLED
|
||||
SpatialMaterial::finish_shaders();
|
||||
#endif // _3D_DISABLED
|
||||
|
||||
ParticlesMaterial::finish_shaders();
|
||||
CanvasItemMaterial::finish_shaders();
|
||||
SceneStringNames::free();
|
||||
|
|
Loading…
Reference in a new issue