summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-07-03 13:24:19 -0600
committerBrian Paul <[email protected]>2008-07-03 13:24:19 -0600
commit7f4f2ac39de7a5425bcfbd362b688f62f6003afd (patch)
tree547cd23b0b4541bfe77c4e0056c1f2e54aecc2dd
parent6e46c121f9efc941473f797e0a388146a9599eea (diff)
mesa: additional vec4 constructor
-rw-r--r--src/mesa/shader/slang/library/slang_core.gc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/library/slang_core.gc b/src/mesa/shader/slang/library/slang_core.gc
index 78e3ea9fdac..15a0792f437 100644
--- a/src/mesa/shader/slang/library/slang_core.gc
+++ b/src/mesa/shader/slang/library/slang_core.gc
@@ -249,6 +249,14 @@ vec4 __constructor(const vec3 v3, const float f)
__retVal.w = f;
}
+vec4 __constructor(const vec2 v2, const float f1, const float f2)
+{
+ // XXX this constructor shouldn't be needed anymore
+ __retVal.xy = v2;
+ __retVal.z = f1;
+ __retVal.w = f2;
+}
+
//// ivec2 constructors