mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
iris: don't use index_bias if not indexed
index_bias is undefined if index_size == 0. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7679>
This commit is contained in:
parent
7e1d03f0df
commit
f2e281c231
1 changed files with 0 additions and 2 deletions
|
|
@ -6631,8 +6631,6 @@ iris_upload_render_state(struct iris_context *ice,
|
|||
|
||||
if (draw->index_size) {
|
||||
prim.BaseVertexLocation += draw->index_bias;
|
||||
} else {
|
||||
prim.StartVertexLocation += draw->index_bias;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue