summaryrefslogtreecommitdiff
path: root/src/glsl/builtins/tools
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-07-28 11:58:27 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-07-28 15:46:29 -0700
commit56af4e56e3852363a810174c64650df6f0ae4f53 (patch)
tree8237ded46eef76f88fcdae2ea3fec405e24ac9b1 /src/glsl/builtins/tools
parent7ddee6a535f7323d7c6131e52e7933130d886ae4 (diff)
glsl2: Fix outerProduct builtin.
The type signatures were completely backwards.
Diffstat (limited to 'src/glsl/builtins/tools')
-rwxr-xr-xsrc/glsl/builtins/tools/generate_outerProductGLSL.py4
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 48fb72197c..c561cc3ba1 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"