OSDN Git Service

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:50:28 +0000 (11:50 -0800)
commit84a4b35492f805ec7c5d54edefd409e141101046
tree0a944b3193d69f8543ac9b5edaad0c2fb6f93606
parenteb0749bf154f2a9e12689d0e39e7af1da51e353f
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>
(cherry picked from commit 4a644f1caadc6b3e26b5f0ac60ac855152e38e59)
src/mesa/main/varray.c
src/mesa/main/varray.h