mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
init front/back color attrib indexes to 0, not -1
This commit is contained in:
parent
dd235ff1db
commit
85cfe029b9
1 changed files with 4 additions and 4 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue