From 38b41fd718cfffd11dab637d9d0cbd6c2a30b2c2 Mon Sep 17 00:00:00 2001 From: Mathias Fröhlich Date: Sat, 27 Jan 2018 16:07:22 +0100 Subject: mesa: Use defines for the aliased material array attributes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of just assuming that the material attributes just overlap with the generic attributes 0-12, give them symbolic defines so that we can easier move them to an other range. Signed-off-by: Mathias Fröhlich Reviewed-by: Brian Paul --- src/mesa/tnl/t_context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/tnl/t_context.h') diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h index ced2857fc97..48d7ced791f 100644 --- a/src/mesa/tnl/t_context.h +++ b/src/mesa/tnl/t_context.h @@ -126,7 +126,7 @@ enum { * generic attribute in order to pick up per-vertex material * data. */ - _TNL_ATTRIB_MAT_FRONT_AMBIENT = _TNL_ATTRIB_GENERIC0, + _TNL_ATTRIB_MAT_FRONT_AMBIENT=VERT_ATTRIB_MAT(MAT_ATTRIB_FRONT_AMBIENT), _TNL_ATTRIB_MAT_BACK_AMBIENT, _TNL_ATTRIB_MAT_FRONT_DIFFUSE, _TNL_ATTRIB_MAT_BACK_DIFFUSE, -- cgit v1.2.3