projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41f6691
)
draw: Fix off-by-one error in assert.
author
Vinson Lee
<vlee@vmware.com>
Fri, 9 Jul 2010 00:54:47 +0000
(17:54 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 9 Jul 2010 00:54:47 +0000
(17:54 -0700)
textures is an array of size PIPE_MAX_VERTEX_SAMPLERS.
src/gallium/auxiliary/draw/draw_llvm.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_llvm.c
b/src/gallium/auxiliary/draw/draw_llvm.c
index facdafcc012376d365112e350998a9ae051be0e3..315544d7b87907aba84503f3a51bbaedb62d82f4 100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_llvm.c
+++ b/
src/gallium/auxiliary/draw/draw_llvm.c
@@
-1002,7
+1002,7
@@
draw_llvm_set_mapped_texture(struct draw_context *draw,
unsigned j;
struct draw_jit_texture *jit_tex;
- assert(sampler_idx <
=
PIPE_MAX_VERTEX_SAMPLERS);
+ assert(sampler_idx < PIPE_MAX_VERTEX_SAMPLERS);
jit_tex = &draw->llvm->jit_context.textures[sampler_idx];