Skip to content
Snippets Groups Projects
Commit dcbf2423 authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer Committed by Marge Bot
Browse files

vbo/dlist: add vertices to incomplete primitives

If a primitive is added with missing vertices, this will shift all
the vertices and produce incorrect rendering.

In issue #5786 the app uses GL_LINE_STRIPS with a single vertex.

Adding extra vertices can make the initial estimation for the index
buffer size incorrect, so this buffer can now be growed if needed.

Fixes: ac3d4c76 ("vbo/dlist: convert LINE_STRIPS to LINES")
Closes: mesa/mesa#5786


Acked-by: default avatarMarek Olšák <marek.olsak@amd.com>
Part-of: <mesa/mesa!14243>
parent 7a1d3d3a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment