diff options
author | Ian Romanick <[email protected]> | 2010-07-13 09:22:35 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-07-13 09:22:35 -0700 |
commit | 4e6a3e0d2d148747002ab9e9c1dffe63e912c688 (patch) | |
tree | 8c5c96fe23f1bbdd2ea9ff1143cb326804002662 /src/glsl/linker.cpp | |
parent | 4ca07882afad656bf0a0f56b68038ce556bceec4 (diff) |
glsl2: Remove unnecessary casts of clone return values
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r-- | src/glsl/linker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 481fcab16fe..90dc97bc535 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -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); |