aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/jogl
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/jogl')
-rw-r--r--src/classes/jogl/javax/media/j3d/JoglPipeline.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classes/jogl/javax/media/j3d/JoglPipeline.java b/src/classes/jogl/javax/media/j3d/JoglPipeline.java
index 541d78c..8fac8f9 100644
--- a/src/classes/jogl/javax/media/j3d/JoglPipeline.java
+++ b/src/classes/jogl/javax/media/j3d/JoglPipeline.java
@@ -5025,8 +5025,8 @@ class JoglPipeline extends Pipeline {
};
private static final ByteBuffer[] screen_door_table = new ByteBuffer[screen_door.length];
static {
- int eachLen = screen_door[0].length;
- ByteBuffer buf = BufferUtil.newByteBuffer(screen_door.length * eachLen * BufferUtil.SIZEOF_INT);
+ int eachLen = screen_door[0].length * BufferUtil.SIZEOF_INT;
+ ByteBuffer buf = BufferUtil.newByteBuffer(screen_door.length * eachLen);
IntBuffer intBuf = buf.asIntBuffer();
for (int i = 0; i < screen_door.length; i++) {
intBuf.put(screen_door[i]);