glsl: change variable declared assertion into conditional
authorBrian Paul <brianp@vmware.com>
Mon, 3 May 2010 19:58:51 +0000 (13:58 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 3 May 2010 19:58:53 +0000 (13:58 -0600)
commita12614362a79d676eeb1c3030ed52057bcb8f4f8
tree3e28ca3460b758d8e5bdb696309bfbf89d722994
parent6405ecb399a52e4d3fe0c002bcd9b3485cbd1360
glsl: change variable declared assertion into conditional

The slang_variable::declared field originated as a debug field but
can be promoted for use during sematic error checking.

Fixes fd.o bug 27921.

NOTE: this is a candidate for back-porting to the 7.8 stable branch.
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_compile_variable.h