mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix bug with alpha palettes
This commit is contained in:
parent
9242d5f932
commit
9bb1585a04
@ -262,7 +262,7 @@ Reader(PNMFileType *type, istream *file, bool owns_file, string magic_number) :
|
|||||||
png_set_palette_to_rgb(_png);
|
png_set_palette_to_rgb(_png);
|
||||||
_maxval = 255;
|
_maxval = 255;
|
||||||
_num_channels = 3;
|
_num_channels = 3;
|
||||||
return;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
pnmimage_png_cat.error()
|
pnmimage_png_cat.error()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user