mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 08:08:06 +02:00
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 <kenneth@whitecape.org> Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
60a5d02416
commit
13c68e1447
1 changed files with 1 additions and 1 deletions
|
|
@ -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)); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue