From 3259ce36f7c1688afba292566c782ffc3a2ca8c1 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Wed, 22 Feb 2012 19:29:53 -0800 Subject: j3dcore: fix raster code in the JOGL backend to match the native OpenGL code This appears to have been a typo from the initial implementation and likely never worked. Signed-off-by: Harvey Harrison --- src/classes/jogl/javax/media/j3d/JoglPipeline.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/classes/jogl/javax/media/j3d/JoglPipeline.java b/src/classes/jogl/javax/media/j3d/JoglPipeline.java index 8d24a36..b269a56 100644 --- a/src/classes/jogl/javax/media/j3d/JoglPipeline.java +++ b/src/classes/jogl/javax/media/j3d/JoglPipeline.java @@ -7871,14 +7871,14 @@ class JoglPipeline extends Pipeline { } if (srcOffsetY >= 0) { gl.glPixelStorei(GL.GL_UNPACK_SKIP_ROWS, srcOffsetY); - if (srcOffsetY + rasterHeight > rasterHeight) { - rasterHeight = rasterHeight - srcOffsetY; + if (srcOffsetY + rasterHeight > depthHeight) { + rasterHeight = depthHeight - srcOffsetY; } } else { - rasterHeight += srcOffsetY; - if (rasterHeight > rasterHeight) { - rasterHeight = rasterHeight; - } + rasterHeight += srcOffsetY; + if (rasterHeight > depthHeight) { + rasterHeight = depthHeight; + } } -- cgit v1.2.3