diff options
author | Dave Airlie <[email protected]> | 2016-05-10 11:06:47 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-05-10 14:24:49 +1000 |
commit | 13c68e1447f90d067462ec4fa3186c5c871a56fe (patch) | |
tree | 90080ac0729b3e2ffb96772fc5880b7742956a60 /src/mesa/vbo | |
parent | 60a5d024164e26b003c491e54392b43f1a3b40cd (diff) |
mesa/vbo: fix check for zero aliases with 2/10/10/10
This fixes:
GL33-CTS.gtf33.GL3Tests.vertex_type_2_10_10_10_rev.vertex_type_2_10_10_10_rev_attrib
Reviewed-by: Kenneth Graunke <[email protected]>
Cc: [email protected]
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_attrib_tmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_attrib_tmp.h b/src/mesa/vbo/vbo_attrib_tmp.h index e73b8fb5ff1..ed0b2deda42 100644 --- a/src/mesa/vbo/vbo_attrib_tmp.h +++ b/src/mesa/vbo/vbo_attrib_tmp.h @@ -226,7 +226,7 @@ static inline float conv_i2_to_norm_float(const struct gl_context *ctx, int i2) } while(0) #define ATTR_UI_INDEX(ctx, val, type, normalized, index, arg) do { \ - if ((index) == 0) { \ + if ((index) == 0 && _mesa_attr_zero_aliases_vertex(ctx)) { \ ATTR_UI(ctx, val, (type), normalized, 0, (arg)); \ } else if ((index) < MAX_VERTEX_GENERIC_ATTRIBS) { \ ATTR_UI(ctx, val, (type), normalized, VBO_ATTRIB_GENERIC0 + (index), (arg)); \ |