Commit 7a156476 authored by Brian Paul's avatar Brian Paul

glsl: fix bad sanity-check assertion

parent 23c5b21c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment