From a89b099c74c0129c975d3f7ba1cdccc6a8d6b6be Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Thu, 10 Aug 2006 13:14:24 +0000 Subject: [PATCH] Fixup more PROGRAM_UNDEFINED problems. --- src/mesa/tnl/t_vp_build.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c index 3a66a54715e..894a13b7046 100644 --- a/src/mesa/tnl/t_vp_build.c +++ b/src/mesa/tnl/t_vp_build.c @@ -273,7 +273,7 @@ struct tnl_program { static const struct ureg undef = { - ~0, + PROGRAM_UNDEFINED, ~0, 0, 0, @@ -397,7 +397,7 @@ static struct ureg register_const4f( struct tnl_program *p, static GLboolean is_undef( struct ureg reg ) { - return reg.file == 0xf; + return reg.file == PROGRAM_UNDEFINED; } static struct ureg get_identity_param( struct tnl_program *p ) -- 2.30.2