summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_context.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-11 11:09:36 -0600
committerBrian <[email protected]>2007-10-11 11:09:36 -0600
commit3fb88639af09af2f77203fd633c19ea736a7c0e5 (patch)
tree5bb0b15068a915806d2d43ed0a61ece1c1c35b53 /src/mesa/pipe/draw/draw_context.c
parentafd6bd3cb0036089f7fe01eb140b5d9ee2654ce9 (diff)
Init draw->prim = ~0
We weren't rendering correctly if the first thing drawn was a point (PRIM_MODE_POINT=0).
Diffstat (limited to 'src/mesa/pipe/draw/draw_context.c')
-rw-r--r--src/mesa/pipe/draw/draw_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c
index 44e770f364d..e2521489037 100644
--- a/src/mesa/pipe/draw/draw_context.c
+++ b/src/mesa/pipe/draw/draw_context.c
@@ -81,6 +81,8 @@ struct draw_context *draw_create( void )
draw->attrib_front1 = -1;
draw->attrib_back1 = -1;
+ draw->prim = ~0; /* != any of PIPE_PRIM_x */
+
draw_vertex_cache_invalidate( draw );
return draw;