summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-04 14:05:26 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-12-04 14:07:08 -0700
commit2ee7035886d9f857677776f84e55f92153318832 (patch)
treeb2af12c8a8a5f5526e5be455569f4c4161e1c3f0
parentdf198d24bcb48c7f51ba9d814d97496d998b5db9 (diff)
Fix gl_FrontFacing compilation problem
-rw-r--r--src/mesa/shader/slang/slang_codegen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index 5191e0c222..f6ea57b3f2 100644
--- a/src/mesa/shader/slang/slang_codegen.c
+++ b/src/mesa/shader/slang/slang_codegen.c
@@ -2352,7 +2352,8 @@ _slang_gen_field(slang_assemble_ctx * A, slang_operation *oper)
return n;
}
else if ( ti.spec.type == SLANG_SPEC_FLOAT
- || ti.spec.type == SLANG_SPEC_INT) {
+ || ti.spec.type == SLANG_SPEC_INT
+ || ti.spec.type == SLANG_SPEC_BOOL) {
const GLuint rows = 1;
slang_swizzle swz;
slang_ir_node *n;