Fix bug in stb_dxt where we thought < is opposite of >

This commit is contained in:
Pavel Krajcevski 2016-09-29 23:45:29 -07:00
parent 0f28b14398
commit f43e934eb8

View file

@ -519,7 +519,7 @@ static void stb__CompressColorBlock(unsigned char *dest, unsigned char *block, i
} }
// write the color block // write the color block
if(max16 < min16) if(max16 <= min16)
{ {
unsigned short t = min16; unsigned short t = min16;
min16 = max16; min16 = max16;