mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
draw: fix a regression in computing max elt
gl can use elts without setting indices, in which case our eltMax was set to 0 and always invoking the overflow condition. So by default set eltMax to maximum, it will be curbed by draw_set_indexes (if it ever comes) and if not then it will let gl's glVertexPointer/glDrawArrays work correctly. Fixes piglit's triangle-rasterization-overdraw test. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
41966fdb3b
commit
7807763dd8
1 changed files with 1 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ boolean draw_init(struct draw_context *draw)
|
|||
draw->clip_z = TRUE;
|
||||
|
||||
draw->pt.user.planes = (float (*) [DRAW_TOTAL_CLIP_PLANES][4]) &(draw->plane[0]);
|
||||
draw->pt.user.eltMax = ~0;
|
||||
|
||||
if (!draw_pipeline_init( draw ))
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue