1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-26 19:37:40 +00:00

fixed sky over irregular map

This commit is contained in:
Zeno Rogue
2022-12-16 00:36:44 +01:00
parent 68b7beb753
commit db43ea9de8
2 changed files with 20 additions and 12 deletions

10
sky.cpp
View File

@@ -518,6 +518,12 @@ void celldrawer::draw_ceiling() {
EX struct renderbuffer *airbuf;
EX void swap_if_missing(bool missing) {
if(!missing) return;
arb::swap_vertices();
irr::swap_vertices();
}
EX void make_air() {
if(!sky) return;
@@ -576,7 +582,7 @@ EX void make_air() {
geom3::apply_always3();
check_cgi();
missing = !(cgi.state & 2);
if(missing) arb::swap_vertices();
swap_if_missing(missing);
cgi.require_shapes();
eGeometry orig = geometry;
@@ -625,7 +631,7 @@ EX void make_air() {
GLERR("after draw");
geom3::apply_always3();
if(missing) arb::swap_vertices();
swap_if_missing(missing);
check_cgi();
calcparam();
GLERR("after make_air");