projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd235ff
)
init front/back color attrib indexes to 0, not -1
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 16 Jan 2008 17:56:23 +0000
(10:56 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 16 Jan 2008 17:56:23 +0000
(10:56 -0700)
src/mesa/pipe/draw/draw_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/draw/draw_context.c
b/src/mesa/pipe/draw/draw_context.c
index d134b05717aa78b589f0f9d928d4612a260f9675..39d324f97f46601e5dc5315bca7a17c18fcd9f48 100644
(file)
--- 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 */