diff options
author | Eric Anholt <[email protected]> | 2010-08-02 17:49:01 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-08-02 17:50:20 -0700 |
commit | c8babd5d9bba75c9f38f384f9cb3587e3543cc28 (patch) | |
tree | 276a7c2dac5614bf3b54592a02fc21016f64f4ad /src/glsl/ir_constant_expression.cpp | |
parent | 47f305a4fcd23f859d097c6cc25a739547462939 (diff) |
glsl2: Fix typo in clamp() constant builtin using uint instead of int.
I take back the bad things I've said about the signed/unsigned
comparison warning now.
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 915d362b152..06bea2bef6e 100644 --- a/src/glsl/ir_constant_expression.cpp +++ b/src/glsl/ir_constant_expression.cpp @@ -856,7 +856,7 @@ ir_call::constant_expression_value() break; case GLSL_TYPE_INT: data.i[c] = CLAMP(op[0]->value.i[c], op[1]->value.i[c1], - op[2]->value.u[c2]); + op[2]->value.i[c2]); break; case GLSL_TYPE_FLOAT: data.f[c] = CLAMP(op[0]->value.f[c], op[1]->value.f[c1], |