From 4d1d6ed1590428172816933efce3303fd7c815b2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 3 Jul 2008 16:22:36 -0600 Subject: [PATCH] mesa: additional vec4 constructor --- src/mesa/shader/slang/library/slang_core.gc | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2