diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-08-04 14:39:16 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-08-06 13:39:37 +0800 |
commit | f1fc444bb05421404f42e8d08e9085c6fb6ce7a9 (patch) | |
tree | e1e80297e2f26db2863925009f150f58b47cb421 /src/gallium/auxiliary/draw/draw_pt_so_emit.c | |
parent | eb3c6ddafb7a1b544243e9dec991cc24d16940ea (diff) |
draw: Mask out vertex flags in GS and stream output.
This fixes out-of-bound access to the vertices.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_so_emit.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_so_emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_so_emit.c b/src/gallium/auxiliary/draw/draw_pt_so_emit.c index c86bdd99a3..f7f4f24d35 100644 --- a/src/gallium/auxiliary/draw/draw_pt_so_emit.c +++ b/src/gallium/auxiliary/draw/draw_pt_so_emit.c @@ -225,7 +225,7 @@ static void so_tri(struct pt_so_emit *so, int i0, int i1, int i2) #define FUNC so_run_elts #define LOCAL_VARS const ushort *elts = input_prims->elts; -#define GET_ELT(idx) (elts[start + (idx)]) +#define GET_ELT(idx) (elts[start + (idx)] & ~DRAW_PIPE_FLAG_MASK) #include "draw_so_emit_tmp.h" |