mesa: fix incorrect prim.begin/end for glMultiDrawElements
This has no effect on Gallium, but it affects tnl. Cc: 19.3 20.0 <mesa-stable@lists.freedesktop.org> Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3990> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3990>
This commit is contained in:
parent
a1f4023443
commit
1a61a5b1d4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue