aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Tsinko <[email protected]>2020-02-14 10:59:48 -0700
committerEgor Tsinko <[email protected]>2020-02-14 10:59:48 -0700
commit4b8fb75b9bf3524fcc09a42b0a4ba07596273cd2 (patch)
treef9a8b1d8eb7fee8cbc0c93cc6646e09af36593b1
parent25a9cd6c19968034cc311a76c2065cdd0b4789b6 (diff)
fixed invalid canvas size passed to readRaster() pipeline operation
-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,