mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix crash in headless mode
This commit is contained in:
@@ -45,6 +45,9 @@ int RenderingServerDefault::changes = 0;
|
||||
/* FREE */
|
||||
|
||||
void RenderingServerDefault::_free(RID p_rid) {
|
||||
if (unlikely(p_rid.is_null())) {
|
||||
return;
|
||||
}
|
||||
if (RSG::storage->free(p_rid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user