glsl: fix bad sanity-check assertion

This commit is contained in:
Brian Paul
2010-06-02 14:45:33 -06:00
parent 23c5b21c16
commit 7a156476e4
+1 -1
View File
@@ -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);