diff options
author | Ian Romanick <[email protected]> | 2010-07-06 17:41:02 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-07-06 17:44:37 -0700 |
commit | ca088cc277ce9f986693c857f3961dc0e1a4d91c (patch) | |
tree | baec2a0f395913a7439c2c72803be0604cef377e /src/glsl/ir_constant_expression.cpp | |
parent | f14e596f11b4e44c75a880536efb1e8c5a72da7d (diff) |
glsl2: Clone methods return the type of the thing being cloned
This is as opposed to returning the type of the base class of the hierarchy.
Diffstat (limited to 'src/glsl/ir_constant_expression.cpp')
-rw-r--r-- | src/glsl/ir_constant_expression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp index 11c810bc484..541398a91c7 100644 --- a/src/glsl/ir_constant_expression.cpp +++ b/src/glsl/ir_constant_expression.cpp @@ -626,7 +626,7 @@ ir_constant_visitor::visit(ir_dereference_variable *ir) ir_variable *var = ir->variable_referenced(); if (var && var->constant_value) - value = (ir_constant *)var->constant_value->clone(NULL); + value = var->constant_value->clone(NULL); } |