Skip to content

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

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