diff options
author | Marek Olšák <[email protected]> | 2017-11-15 23:24:56 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-25 17:17:52 +0100 |
commit | 43abaf2ad0c1c42e56e47732395cc98912a050e8 (patch) | |
tree | ed29562b5efc2979815b1179aee0d566d175e1e9 /src/mesa/main | |
parent | 2116b974189b4d58d02bc1c9810aef820eed71b6 (diff) |
mesa: remove unused vertex attrib WEIGHT
We don't support ARB_vertex_blend.
Note that the attribute aliasing check for ARB_vertex_program had to be
rewritten.
vbo_context: 20344 -> 20008 bytes
gl_context: 74672 -> 74616 bytes
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/arrayobj.c | 3 | ||||
-rw-r--r-- | src/mesa/main/context.c | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 88a5702f412..18d6d8008c1 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -277,9 +277,6 @@ _mesa_initialize_vao(struct gl_context *ctx, /* Init the individual arrays */ for (i = 0; i < ARRAY_SIZE(vao->VertexAttrib); i++) { switch (i) { - case VERT_ATTRIB_WEIGHT: - init_array(ctx, vao, VERT_ATTRIB_WEIGHT, 1, GL_FLOAT); - break; case VERT_ATTRIB_NORMAL: init_array(ctx, vao, VERT_ATTRIB_NORMAL, 3, GL_FLOAT); break; diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 25dd59ae2c1..3fa9f69f883 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -436,7 +436,6 @@ _mesa_init_current(struct gl_context *ctx) } /* redo special cases: */ - ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_WEIGHT], 1.0, 0.0, 0.0, 0.0 ); ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_NORMAL], 0.0, 0.0, 1.0, 1.0 ); ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_COLOR0], 1.0, 1.0, 1.0, 1.0 ); ASSIGN_4V( ctx->Current.Attrib[VERT_ATTRIB_COLOR1], 0.0, 0.0, 0.0, 1.0 ); |