From: Vinson Lee Date: Fri, 9 Jul 2010 00:54:47 +0000 (-0700) Subject: draw: Fix off-by-one error in assert. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8f1c629d6b2f86e65c5c0997b140cf8db8f616e;p=mesa.git draw: Fix off-by-one error in assert. textures is an array of size PIPE_MAX_VERTEX_SAMPLERS. --- 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];