mesa: Refactor enable_vertex_array_attrib to make _mesa_enable_vertex_array_attrib
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 4 Nov 2015 00:16:00 +0000 (16:16 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 24 Nov 2015 19:31:29 +0000 (11:31 -0800)
commit4a644f1caadc6b3e26b5f0ac60ac855152e38e59
treef4455159cc1455ac263de73da039e10bd7e298d2
parenta336fcd36a4743c1ea6f8549cb31b48277359717
mesa: Refactor enable_vertex_array_attrib to make _mesa_enable_vertex_array_attrib

Pulls the parts of enable_vertex_array_attrib that aren't just parameter
validation out into a function that can be called from other parts of
Mesa (e.g., meta).

_mesa_enable_vertex_array_attrib can also be used to enable
fixed-function arrays.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/varray.c
src/mesa/main/varray.h