let AWT screenshot properly render translucent pixels

This commit is contained in:
Martin Pernollet 2015-04-22 23:21:55 +02:00
parent 42564abfe7
commit aecab3f380
1 changed files with 1 additions and 1 deletions

View File

@ -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);