diff options
author | Brian <[email protected]> | 2007-07-12 14:50:53 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-07-12 14:50:53 -0600 |
commit | f5eb25e9c7b09612766255f2e2059f3df2bf2095 (patch) | |
tree | 2b449dede51ff5a87c6c7c6a958faef8e701ecac /src/mesa/shader/slang/slang_codegen.c | |
parent | e5dd38942989475f7fd8936a98738bbd57de6b50 (diff) |
fix swizzle-related bug 11534
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.c')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 2b5196f095f..35e80e04523 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.5.3 + * Version: 7.1 * * Copyright (C) 2005-2007 Brian Paul All Rights Reserved. * @@ -2328,7 +2328,8 @@ _slang_gen_field(slang_assemble_ctx * A, slang_operation *oper) n = _slang_gen_swizzle(n, swizzle); return n; } - else if (ti.spec.type == SLANG_SPEC_FLOAT) { + else if ( ti.spec.type == SLANG_SPEC_FLOAT + || ti.spec.type == SLANG_SPEC_INT) { const GLuint rows = 1; slang_swizzle swz; slang_ir_node *n; |