aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-06-02 14:45:33 -0600
committerBrian Paul <[email protected]>2010-06-02 15:34:49 -0600
commit7a156476e4efee8b507461f0af0d867c56723e6e (patch)
treeea557b48187c694c9fecdfa4ddb96f60b19dcae0 /src/mesa/shader/slang
parent23c5b21c1601ba6c62d360d585a4a7fd6b64caa8 (diff)
glsl: fix bad sanity-check assertion
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r--src/mesa/shader/slang/slang_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c
index 974c4a31315..4d4c611dfe4 100644
--- a/src/mesa/shader/slang/slang_emit.c
+++ b/src/mesa/shader/slang/slang_emit.c
@@ -366,7 +366,7 @@ storage_to_src_reg(struct prog_src_register *src, const slang_ir_storage *st)
st0->File = PROGRAM_TEMPORARY;
}
#endif
- assert(st->File < PROGRAM_UNDEFINED);
+ assert(st->File < PROGRAM_FILE_MAX);
src->File = st->File;
assert(index >= 0);