From f43e934eb8b646eef6009569b598ff359d5d07a0 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Thu, 29 Sep 2016 23:45:29 -0700 Subject: [PATCH] Fix bug in stb_dxt where we thought < is opposite of > --- DXTEncoder/src/stb_dxt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DXTEncoder/src/stb_dxt.h b/DXTEncoder/src/stb_dxt.h index 0a8b34a..9319a2a 100644 --- a/DXTEncoder/src/stb_dxt.h +++ b/DXTEncoder/src/stb_dxt.h @@ -519,7 +519,7 @@ static void stb__CompressColorBlock(unsigned char *dest, unsigned char *block, i } // write the color block - if(max16 < min16) + if(max16 <= min16) { unsigned short t = min16; min16 = max16;