Parcourir la source

draw: Fix off-by-one error in assert.

textures is an array of size PIPE_MAX_VERTEX_SAMPLERS.
tags/mesa-7.9-rc1
Vinson Lee il y a 15 ans
Parent
révision
f8f1c629d6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/gallium/auxiliary/draw/draw_llvm.c

+ 1
- 1
src/gallium/auxiliary/draw/draw_llvm.c Voir le fichier

@@ -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];

Chargement…
Annuler
Enregistrer