commit a256577930323d27adbeab804a4b4434660d0370
parent 0fb79e51b6353a2c61d31553fcb1363888188a3b
Author: Michael Savage <mikejsavage@gmail.com>
Date: Thu, 9 Nov 2017 21:41:41 +0200
Oops in BC5 decompressor
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/decompress_bc.cc b/decompress_bc.cc
@@ -29,8 +29,8 @@ static void get_values( float ( &values )[ 8 ], u8 e0, u8 e1 ) {
values[ 3 ] = ( values[ 0 ] * 3 + values[ 1 ] * 2 ) / 5;
values[ 4 ] = ( values[ 0 ] * 2 + values[ 1 ] * 3 ) / 5;
values[ 5 ] = ( values[ 0 ] * 1 + values[ 1 ] * 4 ) / 5;
- values[ 6 ] = 0;
- values[ 7 ] = 255;
+ values[ 6 ] = 0.0f;
+ values[ 7 ] = 1.0f;
}
}