mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
cso: check if pipe_context::bind_vertex_sampler_states is non-null
Fixes segfaults upon exit when the CSO module is releasing its objects.
This commit is contained in:
parent
d5e5909f17
commit
debc0b6fa8
1 changed files with 2 additions and 1 deletions
|
|
@ -260,7 +260,8 @@ void cso_release_all( struct cso_context *ctx )
|
|||
ctx->pipe->bind_blend_state( ctx->pipe, NULL );
|
||||
ctx->pipe->bind_rasterizer_state( ctx->pipe, NULL );
|
||||
ctx->pipe->bind_fragment_sampler_states( ctx->pipe, 0, NULL );
|
||||
ctx->pipe->bind_vertex_sampler_states(ctx->pipe, 0, NULL);
|
||||
if (ctx->pipe->bind_vertex_sampler_states)
|
||||
ctx->pipe->bind_vertex_sampler_states(ctx->pipe, 0, NULL);
|
||||
ctx->pipe->bind_depth_stencil_alpha_state( ctx->pipe, NULL );
|
||||
ctx->pipe->bind_fs_state( ctx->pipe, NULL );
|
||||
ctx->pipe->bind_vs_state( ctx->pipe, NULL );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue