texelFetch & GL_REPEAT

I noticed that the GL_TEXTURE_WRAP_* parameters of texture working different on AMD and NVIDIA platform when texture coordinates out of the texture’s size for texelFetch.
AMD applying wrapping rule, NVIDIA fetches zero value for any rule.
I didn’t find clarification in specification, so what behaviour is correct?

Both behaviors are correct, since it’s undefined behavior. According to the spec (emphasis added):

Note that AMD’s behavior would be out of spec if the context was created with “robust buffer access”.

Thanks. I had hoped to use built-in wrapping, but in this case it is necessary to make it programmatically.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.