mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 07:38:10 +02:00
r600g: check shaders presence in r600_draw_vbo
This patch should prevent the crashes when some shaders are absent, see https://bugs.freedesktop.org/show_bug.cgi?id=43341 Note this is a candidate for the stable branch. Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
81a715605a
commit
e98521e0f3
1 changed files with 3 additions and 0 deletions
|
|
@ -534,6 +534,9 @@ void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *dinfo)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!rctx->ps_shader || !rctx->vs_shader)
|
||||
return;
|
||||
|
||||
r600_update_derived_state(rctx);
|
||||
|
||||
u_vbuf_draw_begin(rctx->vbuf_mgr, dinfo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue