mesa: replace assertion with conditional in _mesa_opcode_string()

This commit is contained in:
Brian Paul
2009-04-03 09:00:06 -06:00
parent 0139637975
commit 5c5d78e191

View File

@@ -291,7 +291,9 @@ _mesa_is_tex_instruction(gl_inst_opcode opcode)
const char * const char *
_mesa_opcode_string(gl_inst_opcode opcode) _mesa_opcode_string(gl_inst_opcode opcode)
{ {
ASSERT(opcode < MAX_OPCODE); if (opcode < MAX_OPCODE)
return InstInfo[opcode].Name; return InstInfo[opcode].Name;
else
return "OP?";
} }