replace vrhr::state checking with nicer functions

This commit is contained in:
Zeno Rogue committed 2020-12-31 19:11:14 +01:00
1 parent 483ea3369b
commit e4e1a856e6
9 files changed
+57 -49

No files matched your search

+1 -3
View File
@@ -374,9 +374,7 @@ EX struct renderbuffer *airbuf;
EX void make_air() {
if(!sky) return;
#if CAP_VR
if(vrhr::state) return;
#endif
if(vrhr::active()) return;
const int AIR_TEXTURE = 512;
if(!airbuf) {
airbuf = new renderbuffer(AIR_TEXTURE, AIR_TEXTURE, true);