mesa: Refactor VertexAttrib[I|L]Format
authorFredrik Höglund <fredrik@kde.org>
Mon, 2 Mar 2015 17:39:50 +0000 (18:39 +0100)
committerFredrik Höglund <fredrik@kde.org>
Fri, 8 May 2015 13:31:03 +0000 (15:31 +0200)
commitbc6668e35d3cbadf4ec37a2d4490df1b4b002729
tree6c11930b24388824bae46988c085e0e40307e6d3
parent308926853d132a4d096e70447a262bef1e576789
mesa: Refactor VertexAttrib[I|L]Format

The only difference between these functions is the legal types and
sizes, so consolidate the code into a single vertex_attrib_format()
function and call it from all three entry points.

Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
src/mesa/main/varray.c