summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/library
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-08-04 15:32:07 -0600
committerBrian Paul <[email protected]>2008-08-04 17:14:49 -0600
commit3b5f9588e79ea023ea2ecea755918ab35799a82a (patch)
tree7e59e41b1379be94dc796826d680ee30e851a5cd /src/mesa/shader/slang/library
parent50ecc38545ff59e9f99d092eebf555816ee3f7f0 (diff)
mesa: glsl: added vec4(ivec4) constructor
Diffstat (limited to 'src/mesa/shader/slang/library')
-rw-r--r--src/mesa/shader/slang/library/slang_core.gc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/library/slang_core.gc b/src/mesa/shader/slang/library/slang_core.gc
index 0dfc03883f2..218383e001d 100644
--- a/src/mesa/shader/slang/library/slang_core.gc
+++ b/src/mesa/shader/slang/library/slang_core.gc
@@ -257,6 +257,11 @@ vec4 __constructor(const bvec4 b)
__retVal = b;
}
+vec4 __constructor(const ivec4 i)
+{
+ __retVal = i;
+}
+
vec4 __constructor(const vec3 v3, const float f)
{
// XXX this constructor shouldn't be needed anymore