program: Remove variable used only in assert().

This commit is contained in:
Matt Turner
2016-03-02 11:00:31 -08:00
parent de2ef0401b
commit 961ead6746

View File

@@ -289,8 +289,7 @@ _mesa_remove_dead_code_global(struct gl_program *prog)
/* check dst reg */
if (inst->DstReg.File == PROGRAM_TEMPORARY) {
const GLuint index = inst->DstReg.Index;
assert(index < REG_ALLOCATE_MAX_PROGRAM_TEMPS);
assert(inst->DstReg.Index < REG_ALLOCATE_MAX_PROGRAM_TEMPS);
if (inst->DstReg.RelAddr) {
if (dbg)