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

interpolateAtSample bug? #68

Closed
elect86 opened this issue Feb 5, 2016 · 3 comments
Closed

interpolateAtSample bug? #68

elect86 opened this issue Feb 5, 2016 · 3 comments
Assignees

Comments

@elect86
Copy link

elect86 commented Feb 5, 2016

I can't run gl-400-fbo-multisample and all the others who uses the interpolateAtSample

in vert
{
    vec2 Texcoord;
    //sample vec2 Texcoord;
} Vert;

layout(location = FRAG_COLOR, index = 0) out vec4 Color;

void main()
{
    Color = texture(Diffuse, interpolateAtSample(Vert.Texcoord, gl_SampleID));
    //Color = texture(Diffuse, Vert.Texcoord);
}

Asking on the irc opengl, a guy suggested me to use the commented out lines instead, and that works. He also said it is probabily a glsl compiler bug... what do you think?

Edit: https://devtalk.nvidia.com/default/topic/914874/opengl/glsl-compiler-bug-on-interpolateatsample-/

@pixeljetstream
Copy link

There is a known compiler bug for this, if you remove "Vert" at the end of the "in" definition and use Texcoord directly it should work in the interpolateAtSample function.

@Groovounet
Copy link
Member

Hi @elect86,

What drivers / GPU are you using? Do you see an GLSL compiler error? What is it?
On a GTX 970, it works just fine for me. (tm)

Thanks,
Christophe

@Groovounet Groovounet self-assigned this Dec 26, 2016
@Groovounet
Copy link
Member

This issue is fixed in 4.5.4 branch.

Thanks for reporting,
Christophe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants