mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
mesa: skip MultiDrawArrays with primcount == 0
This is the only zero parameter that gallium can't handle. Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8798>
This commit is contained in:
parent
9bd4755410
commit
4975a89f38
1 changed files with 3 additions and 0 deletions
|
|
@ -830,6 +830,9 @@ _mesa_MultiDrawArrays(GLenum mode, const GLint *first,
|
|||
!_mesa_validate_MultiDrawArrays(ctx, mode, count, primcount))
|
||||
return;
|
||||
|
||||
if (primcount == 0)
|
||||
return;
|
||||
|
||||
struct pipe_draw_info info;
|
||||
struct pipe_draw_start_count *draw;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue