mesa: replace assertion with conditional in _mesa_opcode_string()
This commit is contained in:
@@ -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?";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user