Skip to content
Snippets Groups Projects

Remove bad pointer arithmetic in polygon comparators (fixes #295)

Merged Hannu Hanhi requested to merge Hannu_Hanhi/SRB2:comparepolygons-fix into next

I had some bad use of pointer arithmetic in the polygon sorting code, that was probably causing undefined behavior (and therefore wrong sorting and graphical glitches with sky walls) when gr_shaders was off. I also removed the pointer arithmetic from the shader-enabled comparator code since I don't think that is correct C either.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading