summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/cso_cache
diff options
context:
space:
mode:
authorFredrik Höglund <[email protected]>2011-12-15 20:41:42 +0100
committerChristoph Bumiller <[email protected]>2011-12-15 20:50:29 +0100
commitcf5948380829ff44aafb12c911b0fc064360d352 (patch)
tree55505dc01c7d557172bfbfd66f3409255c39d0ba /src/gallium/auxiliary/cso_cache
parent97144eef036cd94068944202214cb8e722b3839d (diff)
gallium: fix a crash in drivers that don't support stream output
Diffstat (limited to 'src/gallium/auxiliary/cso_cache')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_context.c3
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 */