fixed typos in generate_lookup_tables()
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 30 Mar 2000 18:37:32 +0000 (18:37 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 30 Mar 2000 18:37:32 +0000 (18:37 +0000)
src/mesa/main/texutil.c

index c3fca545f852f7f3b72d7c170576fda25ea8cf64..67805c8d71b0f6a9d2d8378e6d7adbac36fd8100 100644 (file)
@@ -1281,7 +1281,7 @@ generate_lookup_tables(void)
       A4R4G4B4toRed[i]   = r;
       A4R4G4B4toGreen[i] = g;
       A4R4G4B4toBlue[i]  = b;
-      A4R4G4B4toAlpha[i] = b;
+      A4R4G4B4toAlpha[i] = a;
    }
 
    for (i = 0; i <= 0xffff; i++) {
@@ -1296,7 +1296,7 @@ generate_lookup_tables(void)
       A1R5G5B5toRed[i]   = r;
       A1R5G5B5toGreen[i] = g;
       A1R5G5B5toBlue[i]  = b;
-      A1R5G5B5toAlpha[i] = b;
+      A1R5G5B5toAlpha[i] = a;
    }
 }