mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
draw: Fix off-by-one error in assert.
textures is an array of size PIPE_MAX_VERTEX_SAMPLERS.
This commit is contained in:
parent
41f66915ab
commit
f8f1c629d6
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue