mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
more guards cont.
This commit is contained in:
parent
f09ed715f1
commit
f3c35de400
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user