2
0
Fork 0

Merge pull request #57705 from jeremyz/poly_source_id

3.5
Rémi Verschelde 2022-02-06 13:44:15 +07:00 committed by GitHub
commit be50fe7243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

@ -606,8 +606,10 @@ void PortalOcclusionCuller::whittle_polys() {
// yes .. we can remove this poly .. but do not muck up the iteration of the list
//print_line("poly is occluded " + itos(t));
#ifdef TOOLS_ENABLED
// this condition should never happen, we should never be checking occludee against itself
DEV_ASSERT(_polys[t].poly_source_id != _polys[n].poly_source_id);
#endif
// unordered remove
_polys[t] = _polys[_num_polys - 1];