glsl: Correctly handle unary plus operator.
authorCarl Worth <cworth@cworth.org>
Wed, 21 Jul 2010 18:23:51 +0000 (11:23 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Jul 2010 18:42:27 +0000 (11:42 -0700)
commitc24bcad9f88379ffba9e2f0ff92f22cdf60c2927
tree0763d225cdac2ad5e8728c7a52c822ea6cc41267
parentf38d15b80d4e4c8ecb7a76087cdc49835f0aa271
glsl: Correctly handle unary plus operator.

Previously, any occurence of the unary plus operator would trigger a
bogus type mismatch error. Fix this by making the ast_plus case look
more like the ast_neg case as far as type-checking is concerned.

With this change the shaders/CorrectPreprocess8.frag test in piglit
now passes.
src/glsl/ast_to_hir.cpp