mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 17:19:28 +01:00
ClipTrianglesAgainstNearPlane took limits for the transformed vertices and the output indices but never checked them, and the caller passed constants (one of them a typo, 65336). Each partially clipped triangle adds two vertices, so a large draw with many triangles crossing the near plane ran off the end of transformed_ and crashed. Pass the real limits, and drop triangles that don't fit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>