projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53d3f0c
)
gallium/cso: check for set_vertex_sampler_views != NULL before calling it
author
Brian Paul
<brianp@vmware.com>
Fri, 2 Jul 2010 14:07:34 +0000
(08:07 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 2 Jul 2010 14:08:22 +0000
(08:08 -0600)
Not all drivers implement this method.
Fixes regression reported by Chris Rankin and bug 28889.
src/gallium/auxiliary/cso_cache/cso_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/cso_cache/cso_context.c
b/src/gallium/auxiliary/cso_cache/cso_context.c
index
2a85fe3
..
c1662df
100644
(file)
--- a/
src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/
src/gallium/auxiliary/cso_cache/cso_context.c
@@
-290,7
+290,8
@@
void cso_release_all( struct cso_context *ctx )
ctx->pipe->bind_vs_state( ctx->pipe, NULL );
ctx->pipe->bind_vertex_elements_state( ctx->pipe, NULL );
ctx->pipe->set_fragment_sampler_views(ctx->pipe, 0, NULL);
- ctx->pipe->set_vertex_sampler_views(ctx->pipe, 0, NULL);
+ if (ctx->pipe->set_vertex_sampler_views)
+ ctx->pipe->set_vertex_sampler_views(ctx->pipe, 0, NULL);
}
for (i = 0; i < PIPE_MAX_SAMPLERS; i++) {