Widen num_components to handle vec4 correctly.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Mar 2010 18:22:42 +0000 (11:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Mar 2010 18:22:42 +0000 (11:22 -0700)
ir.h

diff --git a/ir.h b/ir.h
index b0c2f14e12920df28f520b932e5a916dfa500aa2..530c7326a35c48bd3fa23f6ca09c2a537152205f 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -379,7 +379,7 @@ struct ir_swizzle_mask {
    /**
     * Number of components in the swizzle.
     */
-   unsigned num_components:2;
+   unsigned num_components:3;
 
    /**
     * Does the swizzle contain duplicate components?