aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2016-03-02 11:00:31 -0800
committerMatt Turner <[email protected]>2016-03-02 12:15:58 -0800
commit961ead6746ebf7a8ff99ad4ff35adc0007a3e87c (patch)
tree865139c61c36bb5e652ffaa7a619c869b0b98054 /src
parentde2ef0401b197f176998e10848dc0822b8a047d7 (diff)
program: Remove variable used only in assert().
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/prog_optimize.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/program/prog_optimize.c b/src/mesa/program/prog_optimize.c
index c6d22644419..401f26ec0d0 100644
--- a/src/mesa/program/prog_optimize.c
+++ b/src/mesa/program/prog_optimize.c
@@ -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)