mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 01:50:10 +01:00
Init draw->prim = ~0
We weren't rendering correctly if the first thing drawn was a point (PRIM_MODE_POINT=0).
This commit is contained in:
parent
afd6bd3cb0
commit
3fb88639af
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue