glsl/ast_to_hir: Only use the local 'type' variable as a temporary.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 15 Apr 2011 00:21:59 +0000 (17:21 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 20 Apr 2011 23:46:17 +0000 (16:46 -0700)
commit08ba9778dbf3326bdfc8ca8035b51412032748ea
treed05afc963c0943c7c15e9241691cd26767d90bb6
parentdfaaf7c5e8d05ebf544f758be79f12c824c5cdd7
glsl/ast_to_hir: Only use the local 'type' variable as a temporary.

Lots of code (deleted by this patch) tried to make type == result->type,
but not all cases did.  Don't pretend; just use result->type.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast_to_hir.cpp