From 1a61a5b1d4693631a1b6fb7e83c877792dfbf33d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 13 Feb 2020 22:56:54 -0500 Subject: [PATCH] mesa: fix incorrect prim.begin/end for glMultiDrawElements MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This has no effect on Gallium, but it affects tnl. Cc: 19.3 20.0 Reviewed-by: Mathias Fröhlich Tested-by: Marge Bot Part-of: --- src/mesa/main/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/draw.c b/src/mesa/main/draw.c index a997fcb670e..6877a6b06b6 100644 --- a/src/mesa/main/draw.c +++ b/src/mesa/main/draw.c @@ -1236,8 +1236,8 @@ _mesa_validated_multidrawelements(struct gl_context *ctx, GLenum mode, ib.ptr = (void *) min_index_ptr; for (i = 0; i < primcount; i++) { - prim[i].begin = (i == 0); - prim[i].end = (i == primcount - 1); + prim[i].begin = 1; + prim[i].end = 1; prim[i].mode = mode; prim[i].start = ((uintptr_t) indices[i] - min_index_ptr) / index_type_size; -- 2.30.2