Fixes, some thanks to ASan

This commit is contained in:
eray orçunus committed 2020-10-08 22:41:51 +03:00
1 parent b97f86deea
commit 73a3e9d5bb
3 files changed
+23 -7

No files matched your search

+7 -1
View File
@@ -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
#endif