summaryrefslogtreecommitdiff
path: root/src/glsl/builtins/ir/refract
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2011-01-01 03:43:07 -0800
committerKenneth Graunke <kenneth@whitecape.org>2011-01-12 23:55:34 -0800
commit5bfb68cd0f1d2941645a1fe133ffe1c6a4f5786b (patch)
tree8d902b509be703cd39404fa5e0f2db87f80142fc /src/glsl/builtins/ir/refract
parentbbafd2b849629d3155fe0eef655bbc166a901925 (diff)
glsl/builtins: Remove unnecessary (constant bool (1)) from assignments.
This isn't strictly necessary, but is definitely nicer.
Diffstat (limited to 'src/glsl/builtins/ir/refract')
-rw-r--r--src/glsl/builtins/ir/refract8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/builtins/ir/refract b/src/glsl/builtins/ir/refract
index f6319b0ed4..60899f01ce 100644
--- a/src/glsl/builtins/ir/refract
+++ b/src/glsl/builtins/ir/refract
@@ -5,7 +5,7 @@
(declare (in) float n)
(declare (in) float eta))
((declare () float k)
- (assign (constant bool (1)) (x) (var_ref k)
+ (assign (x) (var_ref k)
(expression float - (constant float (1.0))
(expression float * (var_ref eta)
(expression float * (var_ref eta)
@@ -30,7 +30,7 @@
(declare (in) vec2 n)
(declare (in) float eta))
((declare () float k)
- (assign (constant bool (1)) (x) (var_ref k)
+ (assign (x) (var_ref k)
(expression float - (constant float (1.0))
(expression float * (var_ref eta)
(expression float * (var_ref eta)
@@ -55,7 +55,7 @@
(declare (in) vec3 n)
(declare (in) float eta))
((declare () float k)
- (assign (constant bool (1)) (x) (var_ref k)
+ (assign (x) (var_ref k)
(expression float - (constant float (1.0))
(expression float * (var_ref eta)
(expression float * (var_ref eta)
@@ -80,7 +80,7 @@
(declare (in) vec4 n)
(declare (in) float eta))
((declare () float k)
- (assign (constant bool (1)) (x) (var_ref k)
+ (assign (x) (var_ref k)
(expression float - (constant float (1.0))
(expression float * (var_ref eta)
(expression float * (var_ref eta)