summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_compile_variable.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-05-03 13:58:51 -0600
committerBrian Paul <brianp@vmware.com>2010-05-03 13:58:53 -0600
commita12614362a79d676eeb1c3030ed52057bcb8f4f8 (patch)
tree3e28ca3460b758d8e5bdb696309bfbf89d722994 /src/mesa/shader/slang/slang_compile_variable.h
parent6405ecb399a52e4d3fe0c002bcd9b3485cbd1360 (diff)
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.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile_variable.h')
-rw-r--r--src/mesa/shader/slang/slang_compile_variable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_compile_variable.h b/src/mesa/shader/slang/slang_compile_variable.h
index b4585599f2..5c9d248b35 100644
--- a/src/mesa/shader/slang/slang_compile_variable.h
+++ b/src/mesa/shader/slang/slang_compile_variable.h
@@ -41,7 +41,7 @@ typedef struct slang_variable_
GLuint size; /**< Variable's size in bytes */
GLboolean is_global;
GLboolean isTemp; /**< a named temporary (__resultTmp) */
- GLboolean declared; /**< for debug */
+ GLboolean declared; /**< has the var been declared? */
struct slang_ir_storage_ *store; /**< Storage for this var */
} slang_variable;