summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-07-12 14:49:24 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-07-12 14:49:24 -0600
commit673d21047a8f0acb4199777d224b855f203deb62 (patch)
tree06bd142b4dd8f1a13e9e6e77486a034421b9c2e5
parentc1938a60f7a9bf0773b86fb2f9a2677221f96557 (diff)
fix swizzle-related bug 11534
-rw-r--r--src/mesa/shader/slang/slang_codegen.c5
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 f3a6d04428f..94cb6b38a46 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.0.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;