Fix loading of Grayscale + Alpha PNG's
This commit is contained in:
parent
b4abb9edff
commit
a59aab8a31
@ -6527,7 +6527,8 @@ void Load_PNG_Sub(T_IO_Context * context, FILE * file, const char * memory_buffe
|
|||||||
switch (color_type)
|
switch (color_type)
|
||||||
{
|
{
|
||||||
case PNG_COLOR_TYPE_GRAY_ALPHA:
|
case PNG_COLOR_TYPE_GRAY_ALPHA:
|
||||||
bpp = bit_depth * 2;
|
//bpp = bit_depth * 2;
|
||||||
|
bpp = bit_depth; // no more than 8bpp or else we enable true color picture loading
|
||||||
break;
|
break;
|
||||||
case PNG_COLOR_TYPE_RGB:
|
case PNG_COLOR_TYPE_RGB:
|
||||||
bpp = bit_depth * 3;
|
bpp = bit_depth * 3;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user