Fix some breakage after the PROGRAM_UNDEFINED change
authorAlan Hourihane <alanh@tungstengraphics.com>
Thu, 10 Aug 2006 13:12:00 +0000 (13:12 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Thu, 10 Aug 2006 13:12:00 +0000 (13:12 +0000)
src/mesa/main/texenvprogram.c

index bce570b3b2c90ebba1ece8fdef28c9ace5dba1d9..5f798cc7df47ff7a2487329189d3553cb9ddc28a 100644 (file)
@@ -258,7 +258,7 @@ struct ureg {
 };
 
 static const struct ureg undef = { 
-   ~0,
+   PROGRAM_UNDEFINED,
    ~0,
    0,
    0,
@@ -334,7 +334,7 @@ static struct ureg negate( struct ureg reg )
 
 static GLboolean is_undef( struct ureg reg )
 {
-   return reg.file == 0xf;
+   return reg.file == PROGRAM_UNDEFINED;
 }