Fix gl_FrontFacing compilation problem
authorBrian <brian.paul@tungstengraphics.com>
Tue, 4 Dec 2007 21:05:26 +0000 (14:05 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 4 Dec 2007 21:07:08 +0000 (14:07 -0700)
src/mesa/shader/slang/slang_codegen.c

index 5191e0c222f71bcf580a833769c28835724f0cc8..f6ea57b3f2e8a9c98cc59cc1f5e7fc1086cf4b04 100644 (file)
@@ -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;