allow 8 bit mono textures to be contour textures, fixes a bunch of missing transparency in harley la riders

This commit is contained in:
Ian Curtis 2016-03-27 08:39:40 +00:00
parent ffaed8ae32
commit e1278f4451

View file

@ -184,7 +184,7 @@ UINT32 Texture::UploadTexture(const UINT16* src, UINT8* scratch, int format, boo
scratch[i++] = texel;
scratch[i++] = texel;
scratch[i++] = texel;
scratch[i++] = 255;
scratch[i++] = (texel==255 ? 0 : 255);
}
}
break;
@ -199,7 +199,7 @@ UINT32 Texture::UploadTexture(const UINT16* src, UINT8* scratch, int format, boo
scratch[i++] = texel;
scratch[i++] = texel;
scratch[i++] = texel;
scratch[i++] = 255;
scratch[i++] = (texel == 255 ? 0 : 255);
}
}
break;