projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47f305a
)
glsl2: Fix typo in clamp() constant builtin using uint instead of int.
author
Eric Anholt
<eric@anholt.net>
Tue, 3 Aug 2010 00:49:01 +0000
(17:49 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 3 Aug 2010 00:50:20 +0000
(17:50 -0700)
I take back the bad things I've said about the signed/unsigned
comparison warning now.
src/glsl/ir_constant_expression.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_constant_expression.cpp
b/src/glsl/ir_constant_expression.cpp
index 915d362b15243ff49d91001116fc2dfd574df483..06bea2bef6e95724275cbdf35c0e5ed0e49b99e1 100644
(file)
--- 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],