From ff584bb74c1aa6a3799bf786308d6a1719206af3 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 24 Jun 2019 22:30:22 +0200 Subject: [PATCH] fixed a bug with texturing in stereo --- floorshapes.cpp | 2 ++ hyper.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/floorshapes.cpp b/floorshapes.cpp index 25a1b45d..e8a31e08 100644 --- a/floorshapes.cpp +++ b/floorshapes.cpp @@ -978,6 +978,8 @@ void make_floor_textures() { dynamicval gd(vid.depth, 1); dynamicval gc(vid.camera, 1); dynamicval dcgip(cgip, cgip); + dynamicval gvs(vid.stereo_mode, sOFF); + dynamicval vgp(global_projection, 0); check_cgi(); cgi.make_floor_textures_here(); } diff --git a/hyper.h b/hyper.h index c2225a3b..81f0b7d2 100644 --- a/hyper.h +++ b/hyper.h @@ -5554,4 +5554,6 @@ static const int PSEUDOKEY_MEMORY = 16397; static const color_t NOCOLOR = 0; +extern int global_projection; + } \ No newline at end of file