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:
+4
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user