diff options
author | Harvey Harrison <[email protected]> | 2012-02-22 19:29:53 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-02-22 19:29:53 -0800 |
commit | 3259ce36f7c1688afba292566c782ffc3a2ca8c1 (patch) | |
tree | 351b2379548f058ca08f533144a27145690b48ea /src/classes/jogl | |
parent | f602255518bc07ec55ef2137e1b1099cbccbb452 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/classes/jogl')
-rw-r--r-- | src/classes/jogl/javax/media/j3d/JoglPipeline.java | 12 |
1 files changed, 6 insertions, 6 deletions
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; + } } |