mirror of https://github.com/rusefi/jzy3d-api.git
let AWT screenshot properly render translucent pixels
This commit is contained in:
parent
42564abfe7
commit
aecab3f380
|
@ -36,7 +36,7 @@ public class AWTRenderer3d extends Renderer3d{
|
||||||
view.render(gl, glu);
|
view.render(gl, glu);
|
||||||
|
|
||||||
if (doScreenshotAtNextDisplay) {
|
if (doScreenshotAtNextDisplay) {
|
||||||
AWTGLReadBufferUtil screenshot = new AWTGLReadBufferUtil(GLProfile.getGL2GL3(), true);
|
AWTGLReadBufferUtil screenshot = new AWTGLReadBufferUtil(GLProfile.getGL2GL3(), false);
|
||||||
screenshot.readPixels(gl, true);
|
screenshot.readPixels(gl, true);
|
||||||
image = screenshot.getTextureData();
|
image = screenshot.getTextureData();
|
||||||
bufferedImage = screenshot.readPixelsToBufferedImage(gl, true);
|
bufferedImage = screenshot.readPixelsToBufferedImage(gl, true);
|
||||||
|
|
Loading…
Reference in New Issue