summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_constant_expression.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-07-06 17:41:02 -0700
committerIan Romanick <[email protected]>2010-07-06 17:44:37 -0700
commitca088cc277ce9f986693c857f3961dc0e1a4d91c (patch)
treebaec2a0f395913a7439c2c72803be0604cef377e /src/glsl/ir_constant_expression.cpp
parentf14e596f11b4e44c75a880536efb1e8c5a72da7d (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.cpp2
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);
}