imageBuffer = getFrameBufferRGBA( glContext, imageBuffer, viewPortX, viewPortY, width, height ); if ( resultImage == null || resultImage.getWidth() < width || resultImage.getHeight() < height ) { resultImage = new BufferedImage( width, height, BufferedImage.TYPE_INT_ARGB );