Mesa's line clipping code fails when a vertex coordinate is of very large magnitude.
Created attachment 7460 [details] demo program
The problem boils down to computing t = -2.e8 / (-2.e8 - 3.5) We wind up with t=1, but t should instead be some value very close to, but less than 1.0. Tried double precision with no change. Will have to study this further someday.
Brian Paul Do you still experience this issue with newer soft ? Please check the status of your issue.
Unfortunately, swrast, softpipe and llvmpipe all still suffer from this.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/956.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.