OSDN Git Service

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 974c4a3..4d4c611 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);