Add safety-checks before some servers free()
This commit is contained in:
parent
a754930918
commit
ea33001b95
65 changed files with 125 additions and 1 deletions
|
|
@ -123,6 +123,7 @@ XRInterface::XRInterface() {}
|
|||
|
||||
XRInterface::~XRInterface() {
|
||||
if (vrs.vrs_texture.is_valid()) {
|
||||
ERR_FAIL_NULL(RenderingServer::get_singleton());
|
||||
RS::get_singleton()->free(vrs.vrs_texture);
|
||||
vrs.vrs_texture = RID();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue