Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue on some nvidia cards with texelFetch. #3073

Merged
merged 1 commit into from Sep 19, 2018

Commits on Sep 18, 2018

  1. Fix an issue on some nvidia cards with texelFetch.

    In the do_clip() function, texelFetch is sometimes returning
    invalid results on some nVidia GPUs.
    
    To work around that, use UVs as normalized float coordinates
    and fetch via texture(). This fixes the problems on nVidia
    cards.
    
    This exposed a bug in how we handle vertex snapping with clips.
    Previously, we just cast the float UVs to an int before passing
    to texelFetch. Now, pass in the snap offset and apply that to
    the UVs for the clip mask.
    gw3583 committed Sep 18, 2018
You can’t perform that action at this time.