1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-18 20:12:07 +00:00

various changes and fixes to make coolfog and sky work correctly in VR

This commit is contained in:
Zeno Rogue
2021-03-09 13:12:53 +01:00
parent 9f5591249a
commit 56485f20a9
6 changed files with 44 additions and 32 deletions
+4 -5
View File
@@ -2178,11 +2178,6 @@ void dqi_line::draw_back() {
}
EX void sort_drawqueue() {
#if MAXMDIM >= 4 && CAP_GL
if(WDIM == 2 && GDIM == 3 && hyperbolic) make_air();
#endif
DEBBI(DF_GRAPH, ("sort_drawqueue"));
for(int a=0; a<PMAX; a++) qp[a] = 0;
@@ -2387,6 +2382,10 @@ EX void drawqueue() {
#if CAP_WRL
if(wrl::in) { wrl::render(); return; }
#endif
#if MAXMDIM >= 4 && CAP_GL
if(WDIM == 2 && GDIM == 3 && hyperbolic && !vrhr::rendering()) make_air();
#endif
#if CAP_VR
if(vrhr::should_render() == 1) {