glsl2: Don't dereference a NULL var in CE handling during a compile error.
authorEric Anholt <eric@anholt.net>
Tue, 27 Jul 2010 19:10:50 +0000 (12:10 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 27 Jul 2010 19:10:50 +0000 (12:10 -0700)
commit54f583a206a15b1a92c547333adfae29ced796ef
tree227033d6e0b8f06a3f2aa0ce844349a8ff9896c6
parent20c074ae28b310348a6a1920ad0ddf1e5cbb7a46
glsl2: Don't dereference a NULL var in CE handling during a compile error.

If an undeclared variable was dereferenced in an expression that
needed constant expression handling, we would walk off a null ir->var
pointer.

Fixes:
glsl1-TIntermediate::addUnaryMath
src/glsl/ir_constant_expression.cpp