glsl2: Remove unnecessary casts of clone return values

This commit is contained in:
Ian Romanick
2010-07-13 09:22:35 -07:00
parent 4ca07882af
commit 4e6a3e0d2d
2 changed files with 23 additions and 27 deletions

View File

@@ -315,8 +315,7 @@ cross_validate_globals(struct gl_shader_program *prog,
* have an initializer but a later instance does, copy the
* initializer to the version stored in the symbol table.
*/
existing->constant_value =
(ir_constant *)var->constant_value->clone(NULL);
existing->constant_value = var->constant_value->clone(NULL);
}
} else
variables.add_variable(var->name, var);