glsl: Improve error message when read-only vars are written
authorChad Versace <chad.versace@intel.com>
Fri, 21 Jan 2011 21:44:08 +0000 (13:44 -0800)
committerChad Versace <chad.versace@intel.com>
Fri, 21 Jan 2011 22:06:28 +0000 (14:06 -0800)
commitb66be7518ad57368b31b5d70a2bb4c0fe66aa988
tree14e6cec0ccece4c61725aafef35a89114411846f
parent01a584d09350d2c726312e2c9e88c5dbc54bdb70
glsl: Improve error message when read-only vars are written

Improves the cases when:
* an explicit assignment references the read-only variable
* an 'out' or 'inout' function parameter references the read-only variable
src/glsl/ast_function.cpp
src/glsl/ast_to_hir.cpp