diff options
Diffstat (limited to 'src/compiler/glsl/lower_distance.cpp')
-rw-r--r-- | src/compiler/glsl/lower_distance.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/glsl/lower_distance.cpp b/src/compiler/glsl/lower_distance.cpp index ff04e9a26d8..4d8d66b7cc6 100644 --- a/src/compiler/glsl/lower_distance.cpp +++ b/src/compiler/glsl/lower_distance.cpp @@ -235,7 +235,8 @@ lower_distance_visitor::create_indices(ir_rvalue *old_index, old_index = new(ctx) ir_expression(ir_unop_u2i, old_index); } - ir_constant *old_index_constant = old_index->constant_expression_value(); + ir_constant *old_index_constant = + old_index->constant_expression_value(ctx); if (old_index_constant) { /* gl_ClipDistance is being accessed via a constant index. Don't bother * creating expressions to calculate the lowered indices. Just create |