Summary: | Mesa: User error: GL_INVALID_OPERATION | ||
---|---|---|---|
Product: | Mesa | Reporter: | Alexandre Demers <alexandre.f.demers> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED NOTOURBUG | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | The culprit shader |
Description
Alexandre Demers
2012-08-28 06:01:24 UTC
Created attachment 66199 [details]
The culprit shader
When adding more verbosity: Loading shaders/first.frag 0:45(11): error: assignment to read-only variable 'lightDir' error: linking with uncompiled shaderLoading shaders/second.vert "A varying variable must be written on a vertex shader, where we compute the value of the variable for each vertex. In the fragment shader the variable, whose value results from an interpolation of the vertex values computed previously, can only be read." lightDir is a varying that was write in the vertex shader, so it can only be read in the fragment shader |
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.