diff options
author | Mathias Fröhlich <[email protected]> | 2011-10-31 15:11:43 +0100 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2011-11-29 06:35:44 +0100 |
commit | 104b81def4c09f3012e44778d104f00ff87dd4f0 (patch) | |
tree | 82df7d6acf6057f30c201c603e17e4c1056f247c /src/mesa/main/enable.c | |
parent | b57101302d832f890b9a3b228513d930d91e1de0 (diff) |
mesa: Replace _NEW_ARRAY_* bits with VERT_BIT_*
Consolidate the two distinct set of flags to use VERT_BIT_*.
Signed-off-by: Mathias Froehlich <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index b2c77243b50..e9b7fa0bde2 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -60,41 +60,41 @@ client_state(struct gl_context *ctx, GLenum cap, GLboolean state) switch (cap) { case GL_VERTEX_ARRAY: var = &arrayObj->Vertex.Enabled; - flag = _NEW_ARRAY_VERTEX; + flag = VERT_BIT_POS; break; case GL_NORMAL_ARRAY: var = &arrayObj->Normal.Enabled; - flag = _NEW_ARRAY_NORMAL; + flag = VERT_BIT_NORMAL; break; case GL_COLOR_ARRAY: var = &arrayObj->Color.Enabled; - flag = _NEW_ARRAY_COLOR0; + flag = VERT_BIT_COLOR0; break; case GL_INDEX_ARRAY: var = &arrayObj->Index.Enabled; - flag = _NEW_ARRAY_INDEX; + flag = VERT_BIT_COLOR_INDEX; break; case GL_TEXTURE_COORD_ARRAY: var = &arrayObj->TexCoord[ctx->Array.ActiveTexture].Enabled; - flag = _NEW_ARRAY_TEXCOORD(ctx->Array.ActiveTexture); + flag = VERT_BIT_TEX(ctx->Array.ActiveTexture); break; case GL_EDGE_FLAG_ARRAY: var = &arrayObj->EdgeFlag.Enabled; - flag = _NEW_ARRAY_EDGEFLAG; + flag = VERT_BIT_EDGEFLAG; break; case GL_FOG_COORDINATE_ARRAY_EXT: var = &arrayObj->FogCoord.Enabled; - flag = _NEW_ARRAY_FOGCOORD; + flag = VERT_BIT_FOG; break; case GL_SECONDARY_COLOR_ARRAY_EXT: var = &arrayObj->SecondaryColor.Enabled; - flag = _NEW_ARRAY_COLOR1; + flag = VERT_BIT_COLOR1; break; #if FEATURE_point_size_array case GL_POINT_SIZE_ARRAY_OES: var = &arrayObj->PointSize.Enabled; - flag = _NEW_ARRAY_POINT_SIZE; + flag = VERT_BIT_POINT_SIZE; break; #endif @@ -120,7 +120,7 @@ client_state(struct gl_context *ctx, GLenum cap, GLboolean state) GLint n = (GLint) cap - GL_VERTEX_ATTRIB_ARRAY0_NV; ASSERT(n < Elements(ctx->Array.ArrayObj->VertexAttrib)); var = &arrayObj->VertexAttrib[n].Enabled; - flag = _NEW_ARRAY_ATTRIB(n); + flag = VERT_BIT_GENERIC(n); } break; #endif /* FEATURE_NV_vertex_program */ |