glsl: fix bad sanity-check assertion
authorBrian Paul <brianp@vmware.com>
Wed, 2 Jun 2010 20:45:33 +0000 (14:45 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 2 Jun 2010 21:34:49 +0000 (15:34 -0600)
src/mesa/shader/slang/slang_emit.c

index 974c4a31315470f8c36a03999d5afa1478d8f0d1..4d4c611dfe4a2fb5c300d4575798fca502d52b74 100644 (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);