summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-09-05 12:12:10 -0700
committerKenneth Graunke <[email protected]>2011-09-07 07:48:56 -0700
commit6afce988a9ee41af4ac1244d488ae6b89edf8d13 (patch)
treeb9402bedae404f92e43766352d5132b6eea3d4f2 /src/glsl/builtins/ir
parentf6481be2988a872b16c76cc7f66acc6a2182bbd8 (diff)
glsl/builtins: Fix invalid float constant in noise4 built-in.
Throwing away the extra numbers ought to match the existing behavior. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/builtins/ir')
-rw-r--r--src/glsl/builtins/ir/noise44
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/builtins/ir/noise4 b/src/glsl/builtins/ir/noise4
index d0894fd5e3e..4949696546f 100644
--- a/src/glsl/builtins/ir/noise4
+++ b/src/glsl/builtins/ir/noise4
@@ -84,9 +84,9 @@
(assign (x) (var_ref _p) (expression float + (var_ref p) (constant float (1559.0))) )
(assign (x) (var_ref _x) (expression float noise(var_ref p)))
- (assign (x) (var_ref _y) (expression float noise(expression float + (var_ref p) (constant float (601.0 313.0 29.0 277.0)))))
+ (assign (x) (var_ref _y) (expression float noise(expression float + (var_ref p) (constant float (601.0)))))
(assign (x) (var_ref _z) (expression float noise(var_ref _p)))
- (assign (x) (var_ref _w) (expression float noise(expression float + (var_ref _p) (constant float (601.0 313.0 29.0 277.0)))))
+ (assign (x) (var_ref _w) (expression float noise(expression float + (var_ref _p) (constant float (601.0)))))
(assign (x) (var_ref _r) (var_ref _x))
(assign (y) (var_ref _r) (var_ref _y))