fixup to tes working

This commit is contained in:
Zeno Rogue 2022-12-15 23:13:00 +01:00
parent 16a2aa0f4b
commit 5edb1dba04
1 changed files with 6 additions and 0 deletions

View File

@ -1172,6 +1172,12 @@ EX namespace geom3 {
return f();
}
template<class T> auto in_not_flipped(const T& f) -> decltype(f()) {
light_flip(false);
finalizer ff([] { light_flip(true); });
return f();
}
#define IPF(x) geom3::in_flipped([&] { return (x); })
#endif