I’m trying to get glReadPixels to read the alpha values of the framebuffer but I keep getting only RGB values. The alpha value is set to 255 always.
BufferedImage frameImage = new BufferedImage(width, height,
BufferedImage.TYPE_INT_ARGB);
…
…
gl.glReadPixels(0, 0, frameImage.getWidth(), frameImage.getHeight(),
GL.GL_BGRA, GL.GL_UNSIGNED_INT_8_8_8_8_REV, db.getData());
Can anybody tell me what I’m doing wrong.