From 61e694f270d8a4a03a3245b5e6eea805915ed74b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 22 Jul 2005 02:53:38 +0000 Subject: Make the vertex program source register Index field a signed int since relative addressing can be negative. Change some GLuint indexes to GLint in the t_vp_build.c file. Added PROGRAM_UNDEFINED token for initializing the register File field to avoid a gcc 4.0 warning. --- src/mesa/tnl/t_vp_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/tnl/t_vp_build.c') diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c index 11fdc454cd..fc9fb15bd5 100644 --- a/src/mesa/tnl/t_vp_build.c +++ b/src/mesa/tnl/t_vp_build.c @@ -247,7 +247,7 @@ static struct state_key *make_state_key( GLcontext *ctx ) */ struct ureg { GLuint file:4; - GLuint idx:8; + GLint idx:8; /* relative addressing may be negative */ GLuint negate:1; GLuint swz:12; GLuint pad:7; -- cgit v1.2.3