Mesa (master): glsl: fix bad sanity-check assertion

Brian Paul brianp at kemper.freedesktop.org
Wed Jun 2 14:35:13 PDT 2010


Module: Mesa
Branch: master
Commit: 7a156476e4efee8b507461f0af0d867c56723e6e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a156476e4efee8b507461f0af0d867c56723e6e

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Jun  2 14:45:33 2010 -0600

glsl: fix bad sanity-check assertion

---

 src/mesa/shader/slang/slang_emit.c |    2 +-
 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 974c4a3..4d4c611 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);



More information about the mesa-commit mailing list