mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
llvmpipe: restore call to lp_setup_update_state()
This undoes part of commit 8be645d53a
and fixes fd.o bug 28822 as well as other regressions.
The 'draw' module may issue additional state-change commands while
we're inside the draw_arrays/elements() call so it's important to
check for updated state at this point.
This commit is contained in:
parent
172f3f5eac
commit
249c6735dd
1 changed files with 6 additions and 0 deletions
|
|
@ -60,6 +60,12 @@ static const struct vertex_info *
|
|||
lp_setup_get_vertex_info(struct vbuf_render *vbr)
|
||||
{
|
||||
struct lp_setup_context *setup = lp_setup_context(vbr);
|
||||
|
||||
/* Vertex size/info depends on the latest state.
|
||||
* The draw module may have issued additional state-change commands.
|
||||
*/
|
||||
lp_setup_update_state(setup);
|
||||
|
||||
return setup->vertex_info;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue