diff options
author | Brian <[email protected]> | 2008-01-16 10:56:23 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-01-16 10:56:23 -0700 |
commit | 85cfe029b958c1954aefe0279eb2388bb272ec5c (patch) | |
tree | 17efbba938d630684c559d29f7fe8b3896fff7d0 /src/mesa/pipe | |
parent | dd235ff1db6a2839607931cc07f9ba6e602ac3d4 (diff) |
init front/back color attrib indexes to 0, not -1
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r-- | src/mesa/pipe/draw/draw_context.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c index d134b05717a..39d324f97f4 100644 --- a/src/mesa/pipe/draw/draw_context.c +++ b/src/mesa/pipe/draw/draw_context.c @@ -76,10 +76,10 @@ struct draw_context *draw_create( void ) draw->vcache.vertex[i] = (struct vertex_header *)(tmp + i * MAX_VERTEX_SIZE); } - draw->attrib_front0 = -1; - draw->attrib_back0 = -1; - draw->attrib_front1 = -1; - draw->attrib_back1 = -1; + draw->attrib_front0 = 0; + draw->attrib_back0 = 0; + draw->attrib_front1 = 0; + draw->attrib_back1 = 0; draw->prim = ~0; /* != any of PIPE_PRIM_x */ |