diff options
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java | 2 | ||||
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/awt/AWTGLPixelBuffer.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java b/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java index c2067a9f2..cc3462f99 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java +++ b/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java @@ -176,7 +176,7 @@ public class GLReadBufferUtil { final int reqCompCount = hasAlpha ? 4 : 3; final PixelFormat.Composition hostPixelComp = pixelBufferProvider.getHostPixelComp(gl.getGLProfile(), reqCompCount); final GLPixelAttributes pixelAttribs = pixelBufferProvider.getAttributes(gl, reqCompCount, true); - final int componentCount = pixelAttribs.pfmt.comp.componenCount(); + final int componentCount = pixelAttribs.pfmt.comp.componentCount(); hasAlpha = 0 <= pixelAttribs.pfmt.comp.find(PixelFormat.CType.A); final int alignment = 4 == componentCount ? 4 : 1 ; final int internalFormat = 4 == componentCount ? GL.GL_RGBA : GL.GL_RGB; diff --git a/src/jogl/classes/com/jogamp/opengl/util/awt/AWTGLPixelBuffer.java b/src/jogl/classes/com/jogamp/opengl/util/awt/AWTGLPixelBuffer.java index 6b0b3784d..d2f89cb9b 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/awt/AWTGLPixelBuffer.java +++ b/src/jogl/classes/com/jogamp/opengl/util/awt/AWTGLPixelBuffer.java @@ -235,7 +235,7 @@ public class AWTGLPixelBuffer extends GLPixelBuffer { if( null == hostPixComp ) { throw new IllegalArgumentException("Null hostPixComp"); } - final int awtFormat = getAWTFormat(gl.getGLProfile(), hostPixComp.componenCount()); + final int awtFormat = getAWTFormat(gl.getGLProfile(), hostPixComp.componentCount()); final BufferedImage image = new BufferedImage(width, height, awtFormat); final int[] readBackIntBuffer = ((DataBufferInt) image.getRaster().getDataBuffer()).getData(); final Buffer ibuffer = IntBuffer.wrap( readBackIntBuffer ); @@ -291,7 +291,7 @@ public class AWTGLPixelBuffer extends GLPixelBuffer { r.dispose(); } r = allocateImpl(hostPixComp, pixelAttributes, pack, - getAWTFormat(gl.getGLProfile(), hostPixComp.componenCount()), width, height, depth, minByteSize); + getAWTFormat(gl.getGLProfile(), hostPixComp.componentCount()), width, height, depth, minByteSize); bufferMap.put(bufferKey, r); } return r; |