Created attachment 405 [details]
Test case. Reads and displays an indexed PNG.
Some indexed color PNG images do not render correctly when loaded using the PNGTextureProvider. It appears that the alpha channel is rendered instead of the indexed color channel.
Run the attached test program:
java -Xmx512m -Dsun.java2d.noddraw=true -Dnewt.debug=all -Dnativewindow.debug=all -Djogl.debug=all -classpath ".:jogl-all.jar:gluegen-rt.jar" TestIndexedPNG
This program reads the file indexed.png and displays the image in a window.
Image is rendered in grayscale, as if the alpha channel is being drawn instead of the actual image.
Image should be rendered in color, as it appears in other viewers.
Done .. tested w/ our own unit tests, see SCM refs.