diff options
author | Vinson Lee <[email protected]> | 2010-02-09 01:26:11 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-09 01:26:11 -0800 |
commit | 70f8aaa0c30c640d0cce7faea9402b4e53bbfff0 (patch) | |
tree | cbf3ac8367e320d04934dfce099696c812d9a28d /src/gallium/drivers/r300/r300_vs.c | |
parent | 43f8a82a76599c10fa33ef35b6500924768de90c (diff) |
r300g: Fix off-by-one errors in array bounds assertions.
Diffstat (limited to 'src/gallium/drivers/r300/r300_vs.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_vs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_vs.c b/src/gallium/drivers/r300/r300_vs.c index 9fbb830047f..fb81b2439b6 100644 --- a/src/gallium/drivers/r300/r300_vs.c +++ b/src/gallium/drivers/r300/r300_vs.c @@ -61,17 +61,17 @@ static void r300_shader_read_vs_outputs( break; case TGSI_SEMANTIC_COLOR: - assert(index <= ATTR_COLOR_COUNT); + assert(index < ATTR_COLOR_COUNT); vs_outputs->color[index] = i; break; case TGSI_SEMANTIC_BCOLOR: - assert(index <= ATTR_COLOR_COUNT); + assert(index < ATTR_COLOR_COUNT); vs_outputs->bcolor[index] = i; break; case TGSI_SEMANTIC_GENERIC: - assert(index <= ATTR_GENERIC_COUNT); + assert(index < ATTR_GENERIC_COUNT); vs_outputs->generic[index] = i; break; |