mesa: Switch to the other glGetVertexAttribPointervARB implementation.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 14 Oct 2012 22:09:19 +0000 (15:09 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Oct 2012 18:24:34 +0000 (11:24 -0700)
commit16d8161962d04170f141a893a50a620906abe375
tree4a2163eabd927ff5e9b12812ce727f65ab73ad0f
parent070ba30c368d03615f0784030ba3245f8d4211e2
mesa: Switch to the other glGetVertexAttribPointervARB implementation.

Previously, Mesa used nvprogram.c's _mesa_GetVertexAttribPointervNV()
function to implement this GL call.  There was also a second
implementation in varray.c, _mesa_GetVertexAttribPointervARB(), which
was entirely unused.

The varray.c variant has an additional assertion and checks the index
against ctx->Const.VertexProgram.MaxAttribs rather than
MAX_VERTEX_GENERIC_ATTRIBS.  However, that variable is defined to the
same value, so it should be fine.

This will allow us to kill the duplicate function.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/api_exec.c
src/mesa/main/dlist.c