1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-15 01:39:57 +00:00

remove VR models on vr::shutdown

This commit is contained in:
Zeno Rogue 2021-03-09 10:48:53 +01:00
parent 49a1cf1cab
commit 9f5591249a

5
vr.cpp
View File

@ -847,6 +847,11 @@ EX void shutdown_vr() {
delete e;
e = nullptr;
}
for(auto& m: vrdata.models) {
if(m) delete m;
}
vrdata.models.clear();
for(auto& m: vrdata.device_models) m = nullptr;
state = 0;
}