From 4b7f00ce1b26ac4a7347df5cbb34dbba74219c99 Mon Sep 17 00:00:00 2001 From: Kevin Rushforth Date: Fri, 13 Apr 2007 17:59:45 +0000 Subject: Fixed issue 479: JOGL: Screen door transparency renders incorrectly on JoglPipeline git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@820 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/classes/jogl/javax/media/j3d/JoglPipeline.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/classes/jogl') 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]); -- cgit v1.2.3