From: Brian Paul Date: Fri, 3 Apr 2009 15:00:06 +0000 (-0600) Subject: mesa: replace assertion with conditional in _mesa_opcode_string() X-Git-Tag: 062012170305~16521^2~893 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c5d78e1918fedb6fd43f5fafdba2a142a09d56f;p=profile%2Fivi%2Fmesa.git mesa: replace assertion with conditional in _mesa_opcode_string() --- diff --git a/src/mesa/shader/prog_instruction.c b/src/mesa/shader/prog_instruction.c index 6a21152..ca7565c 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?"; }