glsl2: Check that returned expressions match the function return type.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Jun 2010 06:38:04 +0000 (23:38 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 29 Jun 2010 18:12:53 +0000 (11:12 -0700)
commit18707eba1cd6c07fa8b63d0ba5b26f6433f1ae91
treea0d1aea37d1f515e1f385a513c24615c9e4b5a1c
parent153eca98064252be4daad9cc27746f37c245b627
glsl2: Check that returned expressions match the function return type.

From my reading of the specification, implicit conversions are not
allowed.  ATI seems to agree, though nVidia allows it without warning.
src/glsl/ast_to_hir.cpp