summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/cso_cache
diff options
context:
space:
mode:
authorFredrik Höglund <fredrik@kde.org>2011-12-15 20:41:42 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2011-12-15 20:50:29 +0100
commitcf5948380829ff44aafb12c911b0fc064360d352 (patch)
tree55505dc01c7d557172bfbfd66f3409255c39d0ba /src/gallium/auxiliary/cso_cache
parent97144eef036cd94068944202214cb8e722b3839d (diff)
downloadexternal_mesa3d-cf5948380829ff44aafb12c911b0fc064360d352.zip
external_mesa3d-cf5948380829ff44aafb12c911b0fc064360d352.tar.gz
external_mesa3d-cf5948380829ff44aafb12c911b0fc064360d352.tar.bz2
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 49318e7..b46e668 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 */