projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd1252a
)
cso: fix loop bound in cso_set_vertex_samplers()
author
Brian Paul
<brianp@vmware.com>
Thu, 3 Feb 2011 01:11:27 +0000
(18:11 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 3 Feb 2011 01:11:30 +0000
(18:11 -0700)
Before we were looping to nr_samplers, which is the number of fragment
samplers, not vertex samplers.
NOTE: This is a candidate for the 7.9 and 7.10 branches.
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 58b022d531db97916aeb1948b9f638ba9c8cb9dc..b983fa61c1217ddc76b10e4d01459f2a168592d6 100644
(file)
--- a/
src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/
src/gallium/auxiliary/cso_cache/cso_context.c
@@
-595,7
+595,7
@@
enum pipe_error cso_set_vertex_samplers(struct cso_context *ctx,
error = temp;
}
- for ( ; i < ctx->nr_samplers; i++) {
+ for ( ; i < ctx->nr_
vertex_
samplers; i++) {
temp = cso_single_vertex_sampler( ctx, i, NULL );
if (temp != PIPE_OK)
error = temp;