mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
mesa/st: Fix use-after-free of the draw VS.
If the program with a draw variant gets deleted, it could leave a dangling pointer in st's draw module that would get referenced next state update of a draw fallback. Fixes a valgrind complaint in piglit's rasterpos test, which is flaky on softpipe (but not due to this). Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8207>
This commit is contained in:
parent
5dd5fb1926
commit
2f41afeac1
1 changed files with 2 additions and 0 deletions
|
|
@ -518,4 +518,6 @@ st_feedback_draw_vbo(struct gl_context *ctx,
|
|||
draw_set_mapped_vertex_buffer(draw, buf, NULL, 0);
|
||||
}
|
||||
draw_set_vertex_buffers(draw, 0, num_vbuffers, NULL);
|
||||
|
||||
draw_bind_vertex_shader(draw, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue