mesa: glsl: added vec4(ivec4) constructor
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 4 Aug 2008 21:32:07 +0000 (15:32 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 4 Aug 2008 23:14:49 +0000 (17:14 -0600)
src/mesa/shader/slang/library/slang_core.gc

index 0dfc03883f2b082729d455b91f3a54587d44604b..218383e001d1b84e1ff8826767cd02bc9c3d4707 100644 (file)
@@ -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