mesa: Factor out index function that will have multiple use.
For access to glArrayElement methods factor out a function to get the table lookup index for normalized/integer/double access. The function will be used in the next patch at least twice. v2: Use vertex_format_to_index instead of NORM_IDX. Reviewed-by:Brian Paul <brianp@vmware.com> Signed-off-by:
Mathias Fröhlich <Mathias.Froehlich@web.de>
Loading
Please register or sign in to comment