aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-02-16 06:39:52 +0100
committerSven Gothel <[email protected]>2015-02-16 06:39:52 +0100
commit42d88f99cfa62304943a7b37700653e627b13e61 (patch)
treec1556ac4b8ce5a6dd3325a15766b0375d722d52e /src/jogl/classes/com
parent70faf070f50ea66fd4cc8f5f586614810f378787 (diff)
Fix typo: PixelFormat.Composition.[componenCount() -> componentCount()]
.. thx to Julien Gouesse's review.
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java2
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/awt/AWTGLPixelBuffer.java4
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;