Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNG textures rendered plain white with libpng16 #656

Open
illwieckz opened this issue Jul 7, 2020 · 3 comments
Open

PNG textures rendered plain white with libpng16 #656

illwieckz opened this issue Jul 7, 2020 · 3 comments

Comments

@illwieckz
Copy link
Contributor

illwieckz commented Jul 7, 2020

That's a bug I noticed a long time ago, but I did not find time to report it before.

At some point in the past years, PNG textures started to be rendered white. Other formats like TGA are not affected.

See how it looks:

white PNG textures

The bug may have started to be seen on my end when my system stopped to build GtkRadiant against libpng12 and started to build it against libpng16.

Speaking about libpng and radiant, it is known NetRadiant faced several issues related to the libpng 12 to 16 transition because of libpng shipping an implementation of zlib that may conflict with the standalone zlib used by radiant.

@illwieckz illwieckz changed the title White PNG textures White PNG textures with libpng16 Jul 7, 2020
@illwieckz illwieckz changed the title White PNG textures with libpng16 PNG textures rendered plain white with libpng16 Jul 7, 2020
@TTimo
Copy link
Owner

TTimo commented Jul 11, 2020

That link doesn't work for me btw.

@ensiform
Copy link
Contributor

ensiform commented Jul 11, 2020

Alternatively could use something not requiring libpng unless write png is needed. ioquake3 engine has a simple png reader that doesn't need any libs. Stb probably also has a basic one too.

https://github.com/ioquake/ioq3/blob/master/code/renderercommon/tr_image_png.c

@illwieckz
Copy link
Contributor Author

I fixed the link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants