OSDN Git Service

init vertex weight attrib to (1,0,0,0)
authorMarkus Amsler <markus.amsler@oribi.org>
Sun, 9 Mar 2008 23:51:11 +0000 (17:51 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Sun, 9 Mar 2008 23:54:32 +0000 (17:54 -0600)
src/mesa/main/context.c

index 69c361f..63dc137 100644 (file)
@@ -777,7 +777,7 @@ _mesa_init_current(GLcontext *ctx)
    }
 
    /* redo special cases: */
-   ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_WEIGHT], 1.0, 0.0, 0.0, 1.0 );
+   ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_WEIGHT], 1.0, 0.0, 0.0, 0.0 );
    ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_NORMAL], 0.0, 0.0, 1.0, 1.0 );
    ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_COLOR0], 1.0, 1.0, 1.0, 1.0 );
    ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_COLOR1], 0.0, 0.0, 0.0, 1.0 );