diff options
author | Brian Paul <[email protected]> | 2009-02-18 11:06:57 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-02-18 13:15:13 -0700 |
commit | 212f41b80fe00a8d44d79f2c8e4018836adb8b86 (patch) | |
tree | c54c4c780be4223dfc024dc6edc941e407c78456 /src | |
parent | defd52f6c75ad1f714ce90f5763ec8a4d48dd773 (diff) |
glsl: fix a swizzle-related regression
This new issue was exposed by commit 6eabfc27f19a10dfc2663e99f9560966ba1ff697
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/slang/slang_emit.c | 2 |
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 ac01462bd55..feff1b7474d 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: |