aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/jogamp/java3d/GraphicsContext3D.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/jogamp/java3d/GraphicsContext3D.java b/src/main/java/org/jogamp/java3d/GraphicsContext3D.java
index c2c43f9..6844b95 100644
--- a/src/main/java/org/jogamp/java3d/GraphicsContext3D.java
+++ b/src/main/java/org/jogamp/java3d/GraphicsContext3D.java
@@ -2255,7 +2255,6 @@ public int numSounds() {
}
RasterRetained ras = (RasterRetained)raster.retained;
- Dimension canvasSize = canvas3d.getSize();
Dimension rasterSize = new Dimension();
ImageComponent2DRetained image = ras.image;
@@ -2348,7 +2347,7 @@ public int numSounds() {
Pipeline.getPipeline().readRaster(canvas3d.ctx,
ras.type, rasterSrcOffset.x, rasterSrcOffset.y,
- rasterSize.width, rasterSize.height, canvasSize.height,
+ rasterSize.width, rasterSize.height, canvas3d.getPixelHeight(),
imageDataType,
imageFormatType,
imageBuffer,