summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-02-18 11:06:57 -0700
committerBrian Paul <brianp@vmware.com>2009-02-18 13:15:13 -0700
commit212f41b80fe00a8d44d79f2c8e4018836adb8b86 (patch)
treec54c4c780be4223dfc024dc6edc941e407c78456 /src/mesa/shader/slang
parentdefd52f6c75ad1f714ce90f5763ec8a4d48dd773 (diff)
glsl: fix a swizzle-related regression
This new issue was exposed by commit 6eabfc27f19a10dfc2663e99f9560966ba1ff697
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r--src/mesa/shader/slang/slang_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c
index ac01462bd5..feff1b7474 100644
--- a/src/mesa/shader/slang/slang_emit.c
+++ b/src/mesa/shader/slang/slang_emit.c
@@ -164,7 +164,7 @@ _slang_var_swizzle(GLint size, GLint comp)
{
switch (size) {
case 1:
- return MAKE_SWIZZLE4(comp, comp, comp, comp);
+ return MAKE_SWIZZLE4(comp, SWIZZLE_NIL, SWIZZLE_NIL, SWIZZLE_NIL);
case 2:
return MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_NIL, SWIZZLE_NIL);
case 3: