[Mesa-dev] [Bug 97524] Samplers referring to the same texture unit with different types should raise GL_INVALID_OPERATION

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 25 18:34:02 UTC 2016


--- Comment #14 from Matias N. Goldberg <dark_sylinc at yahoo.com.ar> ---
Dang it! You're right.

I forgot GL allows (requires?) changing sampler values after the shader is

As for glValidateProgram, our actual software (not this sample) would often
warn about sampler collisions due to a bug in our code where all the samplers
would initially be set to 0, but we later correct it and thus still works fine


I know the docs isn't the spec, but this is relevant nonetheless:
"The error GL_INVALID_OPERATION will be generated by glDrawArrays or
glDrawElements if any two active samplers in the current program object are of
different types, but refer to the same texture image unit."

You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161025/ab35dda1/attachment.html>

More information about the mesa-dev mailing list