summaryrefslogtreecommitdiffstats
path: root/src/render/Occlusion.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-08 20:46:00 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-08 21:41:51 +0200
commit73a3e9d5bb3a12812926b487a17c36dd4381ebc2 (patch)
tree598f7ad80dceb628edd3c6c7943f1b54a3374208 /src/render/Occlusion.cpp
parentMerge pull request #750 from erorcun/miami (diff)
downloadre3-73a3e9d5bb3a12812926b487a17c36dd4381ebc2.tar
re3-73a3e9d5bb3a12812926b487a17c36dd4381ebc2.tar.gz
re3-73a3e9d5bb3a12812926b487a17c36dd4381ebc2.tar.bz2
re3-73a3e9d5bb3a12812926b487a17c36dd4381ebc2.tar.lz
re3-73a3e9d5bb3a12812926b487a17c36dd4381ebc2.tar.xz
re3-73a3e9d5bb3a12812926b487a17c36dd4381ebc2.tar.zst
re3-73a3e9d5bb3a12812926b487a17c36dd4381ebc2.zip
Diffstat (limited to '')
-rw-r--r--src/render/Occlusion.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/render/Occlusion.cpp b/src/render/Occlusion.cpp
index 1ea9da50..79ce0461 100644
--- a/src/render/Occlusion.cpp
+++ b/src/render/Occlusion.cpp
@@ -366,6 +366,12 @@ COcclusion::ProcessBeforeRendering(void)
}
NumActiveOccluders--;
i--;
+ // Taken from Mobile!
+#ifdef FIX_BUGS
+ if (i == -1) {
+ i = 0;
+ }
+#endif
}
}
}
@@ -481,4 +487,4 @@ void COcclusion::Render() {
DefinedState();
}
-#endif \ No newline at end of file
+#endif