mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 06:33:16 +00:00
fix portal_occlusion_culler compilation with target=debug tools=no
This commit is contained in:
parent
e898f93129
commit
f9fdd526d5
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user