I'm guessing this will get fixed as soon as the code is actually enabled but figured I would point it out anyway.


1
2
3
4
5
6
7
8
#if 0
            Existing->NextOffset = Commands->PushBufferSize;
            Existing->Bound.YMin = Minimum(Existing->Bound.YMin, SortKey.YMin);
            Existing->Bound.YMax = Minimum(Existing->Bound.YMax, SortKey.YMax);
            Existing->Bound.ZMax = Minimum(Existing->Bound.ZMax, SortKey.ZMax);
            Existing->ScreenArea = Union(Existing->ScreenArea, ScreenArea);
            Existing = us;
#endif


YMax and ZMax should use Maximum rather than Minimum.

Thanks.