mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
asahi: fix possible null deref
with indirect non-indexed draws. Backport-to: 25.1 Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34612>
This commit is contained in:
parent
b756e7da65
commit
84505c5d99
1 changed files with 1 additions and 1 deletions
|
|
@ -5238,7 +5238,7 @@ agx_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info,
|
|||
draw.restart = info->primitive_restart;
|
||||
draw.indexed = true;
|
||||
} else {
|
||||
draw.start = draws->start;
|
||||
draw.start = indirect ? 0 : draws->start;
|
||||
}
|
||||
|
||||
if (indirect) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue