diff options
author | Fredrik Höglund <[email protected]> | 2011-12-15 20:41:42 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-12-15 20:50:29 +0100 |
commit | cf5948380829ff44aafb12c911b0fc064360d352 (patch) | |
tree | 55505dc01c7d557172bfbfd66f3409255c39d0ba /src/gallium/auxiliary | |
parent | 97144eef036cd94068944202214cb8e722b3839d (diff) |
gallium: fix a crash in drivers that don't support stream output
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index 49318e7d105..b46e66869d8 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -317,7 +317,8 @@ void cso_release_all( struct cso_context *ctx ) ctx->pipe->set_fragment_sampler_views(ctx->pipe, 0, NULL); if (ctx->pipe->set_vertex_sampler_views) ctx->pipe->set_vertex_sampler_views(ctx->pipe, 0, NULL); - ctx->pipe->set_stream_output_targets(ctx->pipe, 0, NULL, 0); + if (ctx->pipe->set_stream_output_targets) + ctx->pipe->set_stream_output_targets(ctx->pipe, 0, NULL, 0); } /* free fragment samplers, views */ |