Skip to content

line-smooth-stipple: do not test undefined behavior

Erik Faye-Lund requested to merge kusma/piglit:line-smooth-stipple-fix into main

The initial value of the stipple-counter for a clipped line is indetermiante, according to the OpenGL spec. So let's make sure the line doesn't need clipping, by offsetting in the oposite direction, and adding a one-pixel margin on the left and right sides.

This fixes the test on Softpipe, which only updates the stipple-counter for visible fragments.

Merge request reports

Loading