projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afd6bd3
)
Init draw->prim = ~0
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 11 Oct 2007 17:09:36 +0000
(11:09 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 11 Oct 2007 17:09:36 +0000
(11:09 -0600)
We weren't rendering correctly if the first thing drawn was a point (PRIM_MODE_POINT=0).
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 44e770f364df2943c48896c85e6ef5a5c38c064e..e2521489037fefb438296ba1438963a52bbf0bc9 100644
(file)
--- 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;