static inline GLbitfield
_mesa_draw_current_bits(const struct gl_context *ctx)
{
- return ~ctx->Array._DrawVAOEnabledAttribs & VERT_BIT_ALL;
+ return ~ctx->Array._DrawVAOEnabledAttribs;
}
struct gl_vertex_array_object *vao,
GLbitfield attrib_bits)
{
- assert((attrib_bits & ~VERT_BIT_ALL) == 0);
assert(!vao->SharedAndImmutable);
/* Only work on bits that are disabled */
struct gl_vertex_array_object *vao,
GLbitfield attrib_bits)
{
- assert((attrib_bits & ~VERT_BIT_ALL) == 0);
assert(!vao->SharedAndImmutable);
/* Only work on bits that are enabled */
}
/* At first disable arrays no longer needed */
- _mesa_disable_vertex_array_attribs(ctx, vao, VERT_BIT_ALL & ~vao_enabled);
+ _mesa_disable_vertex_array_attribs(ctx, vao, ~vao_enabled);
assert((~vao_enabled & vao->Enabled) == 0);
/* Bind the buffer object */
return (((GLbitfield)enabled) & VERT_BIT_FF_ALL)
| (((GLbitfield)(enabled >> VBO_MATERIAL_SHIFT)) & VERT_BIT_MAT_ALL);
} else {
- return ((GLbitfield)enabled) & VERT_BIT_ALL;
+ return enabled;
}
}
bool color0_changed = false;
/* Copy conventional attribs and generics except pos */
- copy_vao(ctx, node->cold->VAO[VP_MODE_SHADER], ~VERT_BIT_POS & VERT_BIT_ALL,
+ copy_vao(ctx, node->cold->VAO[VP_MODE_SHADER], ~VERT_BIT_POS,
_NEW_CURRENT_ATTRIB, GL_CURRENT_BIT, 0, &data, &color0_changed);
/* Copy materials */
copy_vao(ctx, node->cold->VAO[VP_MODE_FF], VERT_BIT_MAT_ALL,