glsl: When unable to assign the initializer for a const variable, set it to 0.
authorEric Anholt <eric@anholt.net>
Mon, 23 Aug 2010 21:54:06 +0000 (14:54 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 23 Aug 2010 21:58:38 +0000 (14:58 -0700)
commite11757bb896e3dadc54fb3d18adf4b71e3e883b3
tree13c6a301c511a87ef79eb3b53d6fd87068e6e043
parentd1e6b31cb848ed79dd82849f277ab07c9bcdd707
glsl: When unable to assign the initializer for a const variable, set it to 0.

This prevents assertion failures or cascading errors after we've
logged the fact that we were unable to handle the initializer.

Fixes unsized-array-non-const-index-2.vert
src/glsl/ast_to_hir.cpp