diff options
author | Kenneth Graunke <[email protected]> | 2010-07-28 11:58:27 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-07-28 15:46:29 -0700 |
commit | 56af4e56e3852363a810174c64650df6f0ae4f53 (patch) | |
tree | 8237ded46eef76f88fcdae2ea3fec405e24ac9b1 /src/glsl/builtins/tools | |
parent | 7ddee6a535f7323d7c6131e52e7933130d886ae4 (diff) |
glsl2: Fix outerProduct builtin.
The type signatures were completely backwards.
Diffstat (limited to 'src/glsl/builtins/tools')
-rwxr-xr-x | src/glsl/builtins/tools/generate_outerProductGLSL.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/builtins/tools/generate_outerProductGLSL.py b/src/glsl/builtins/tools/generate_outerProductGLSL.py index 48fb72197c3..c561cc3ba14 100755 --- a/src/glsl/builtins/tools/generate_outerProductGLSL.py +++ b/src/glsl/builtins/tools/generate_outerProductGLSL.py @@ -4,11 +4,11 @@ def gen(x, y): type = "mat" + str(x) if x != y: type = type + "x" + str(y) - print type + " outerProduct(vec" + str(x) + " u, vec" + str(y) + " v)\n{" + print type + " outerProduct(vec" + str(y) + " u, vec" + str(x) + " v)\n{" print " " + type + " m;" for i in range(x): - print " m[" + str(i) + "] = v * u[" + str(i) + "];" + print " m[" + str(i) + "] = u * v[" + str(i) + "];" print " return m;\n}" print "#version 120" |