summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_llvm.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-07-08 17:54:47 -0700
committerVinson Lee <[email protected]>2010-07-08 17:54:47 -0700
commitf8f1c629d6b2f86e65c5c0997b140cf8db8f616e (patch)
tree94d0fcb2a24c3adaeade1da1d25cb74fbdd27a64 /src/gallium/auxiliary/draw/draw_llvm.c
parent41f66915ab3d052e0e2ef06000d6534eb7776ec6 (diff)
draw: Fix off-by-one error in assert.
textures is an array of size PIPE_MAX_VERTEX_SAMPLERS.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_llvm.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_llvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index facdafcc012..315544d7b87 100644
--- 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];