diff options
author | Brian Paul <brianp@vmware.com> | 2009-04-03 09:00:06 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-04-03 09:07:04 -0600 |
commit | 5c5d78e1918fedb6fd43f5fafdba2a142a09d56f (patch) | |
tree | 3604946d9e9730e52dd3c4fe6274fd84e0deface /src/mesa/shader | |
parent | 0139637975ec210b28b593722eda85c68c89c70d (diff) |
mesa: replace assertion with conditional in _mesa_opcode_string()
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/prog_instruction.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/shader/prog_instruction.c b/src/mesa/shader/prog_instruction.c index 6a21152c60..ca7565c091 100644 --- a/src/mesa/shader/prog_instruction.c +++ b/src/mesa/shader/prog_instruction.c @@ -291,7 +291,9 @@ _mesa_is_tex_instruction(gl_inst_opcode opcode) const char * _mesa_opcode_string(gl_inst_opcode opcode) { - ASSERT(opcode < MAX_OPCODE); - return InstInfo[opcode].Name; + if (opcode < MAX_OPCODE) + return InstInfo[opcode].Name; + else + return "OP?"; } |