mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
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>
(cherry picked from commit 1a61a5b1d4)
Conflicts Resolved by Dylan Baker
Conflicts:
src/mesa/main/draw.c
This commit is contained in:
parent
8334c60cba
commit
6f9a26ac25
2 changed files with 3 additions and 3 deletions
|
|
@ -526,7 +526,7 @@
|
|||
"description": "mesa: fix incorrect prim.begin/end for glMultiDrawElements",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1228,8 +1228,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].pad = 0;
|
||||
prim[i].mode = mode;
|
||||
prim[i].start =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue