mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Fix crash in headless mode
This commit is contained in:
parent
ad635567b1
commit
82f7f2c46c
3 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue