Created attachment 620 [details]
Stand-alone test to create an image using off-screen buffer
A short code to generate a small PNG image using an off-screen buffer created with GLOffscreenAutoDrawable works perfectly on Windows, Linux, Mac OSX 10.6.8. In OSX 10.9.4 (Mevaricks) produces an empty image, not even background color.
Steps to Reproduce
Compile the code attached and run on a Mac with OSX 10.9.4 Mavericks
A file named test.png 100x100 pixel fully transparent, empty.
PNG file contains solid light pink background.
Build Date & Platform
August 8, 2014
OpenJDK 1.7 update 65, Linux Fedora 20 32 bit
Java 1.6 update 31, Windows 7
Java 1.6 update 65, Mac OSX 10.9.4 64 bit
Tested against JVM 1.7u67 from Oracle on Mac OSX 10.9.4.
Issue still persist.
Offscreen drawable AWT/ImageIO results in black image on OSX/[Java7-Java8]
- Using our PNGJ writer results in proper images (RGB and RGBA) on all platforms
- Seems to be a bug w/ AWT/ImageIO
See added unit test in named commit.
Hence -> Invalid.
(In reply to comment #2)
> Offscreen drawable AWT/ImageIO results in black image on OSX/[Java7-Java8]
> - Using our PNGJ writer results in proper images (RGB and RGBA) on all
> - Seems to be a bug w/ AWT/ImageIO
> See added unit test in named commit.
> Hence -> Invalid.
Thank you, Sven.
Seem I "barking up the wrong tree" (cit.) :D
Mario found a workaround: