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.
This commit is contained in:
@@ -856,7 +856,7 @@ ir_call::constant_expression_value()
|
|||||||
break;
|
break;
|
||||||
case GLSL_TYPE_INT:
|
case GLSL_TYPE_INT:
|
||||||
data.i[c] = CLAMP(op[0]->value.i[c], op[1]->value.i[c1],
|
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;
|
break;
|
||||||
case GLSL_TYPE_FLOAT:
|
case GLSL_TYPE_FLOAT:
|
||||||
data.f[c] = CLAMP(op[0]->value.f[c], op[1]->value.f[c1],
|
data.f[c] = CLAMP(op[0]->value.f[c], op[1]->value.f[c1],
|
||||||
|
Reference in New Issue
Block a user