aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2007-04-13 17:59:45 +0000
committerKevin Rushforth <[email protected]>2007-04-13 17:59:45 +0000
commit4b7f00ce1b26ac4a7347df5cbb34dbba74219c99 (patch)
tree1fa366f81a1a2d70ac7c1f2a97475fe8b2517077 /src/classes
parent4aa069519c612a960a4812aaa22d3b5d179d01c0 (diff)
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
Diffstat (limited to 'src/classes')
-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]);