diff --git a/basegraph.cpp b/basegraph.cpp index b1d80884..738adb72 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -220,6 +220,7 @@ void setcameraangle(bool b) { } EX void reset_projection() { } EX void glflush() { } EX bool model_needs_depth() { return false; } +void display_data::set_all(int ed) {} #endif #if CAP_GL diff --git a/drawing.cpp b/drawing.cpp index 32071044..77158012 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -1116,6 +1116,7 @@ EX namespace s2xe { } } +#if CAP_GL void draw_s2xe(dqi_poly *p) { if(!p->cnt) return; if(p->flags & POLY_TRIANGLES) { @@ -1157,6 +1158,7 @@ void draw_s2xe(dqi_poly *p) { } else draw_s2xe0(p); } +#endif struct point_data { hyperpoint direction; @@ -1165,6 +1167,7 @@ struct point_data { int bad; }; +#if CAP_GL void draw_s2xe0(dqi_poly *p) { if(!p->cnt) return; dqi_poly npoly = *p; @@ -1244,6 +1247,7 @@ void draw_s2xe0(dqi_poly *p) { npoly.gldraw(); } } +#endif EX } EX namespace ods { diff --git a/geometry.cpp b/geometry.cpp index cb3964ac..cbf48565 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1084,7 +1084,7 @@ EX void check_cgi() { floor_textures = NULL; } - #if MAXMDIM >= 4 + #if MAXMDIM >= 4 && CAP_GL if(!floor_textures && GDIM == 3 && (cgi.state & 2)) make_floor_textures(); #endif diff --git a/graph.cpp b/graph.cpp index 4ec77a31..be4fa32b 100644 --- a/graph.cpp +++ b/graph.cpp @@ -4884,7 +4884,7 @@ EX void drawfullmap() { draw_boundary(1); draw_model_elements(); - #if MAXMDIM >= 4 + #if MAXMDIM >= 4 && CAP_GL prepare_sky(); #endif #endif diff --git a/polygons.cpp b/polygons.cpp index 5f635bd8..bc776755 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -1141,7 +1141,7 @@ void geometry_information::configure_floorshapes() { void geometry_information::prepare_shapes() { require_basics(); if(cgflags & qRAYONLY) return; - #if MAXMDIM >= 4 + #if MAXMDIM >= 4 && CAP_GL if(GDIM == 3 && !floor_textures) make_floor_textures(); #endif diff --git a/sky.cpp b/sky.cpp index 49b8bd82..b0398b19 100644 --- a/sky.cpp +++ b/sky.cpp @@ -2,8 +2,8 @@ namespace hr { -#if MAXMDIM >= 4 && CAP_GL EX ld camera_level; +#if MAXMDIM >= 4 && CAP_GL EX int get_skybrightness(int mul IS(1)) { ld s = 1 - mul * (camera_level - cgi.WALL) / -2;