You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Add safety-checks before some servers free()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user