aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/classes/share/javax/media/j3d/BackgroundRetained.java2
-rw-r--r--src/classes/share/javax/media/j3d/RasterRetained.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/classes/share/javax/media/j3d/BackgroundRetained.java b/src/classes/share/javax/media/j3d/BackgroundRetained.java
index d61a231..6ed3046 100644
--- a/src/classes/share/javax/media/j3d/BackgroundRetained.java
+++ b/src/classes/share/javax/media/j3d/BackgroundRetained.java
@@ -234,6 +234,8 @@ class BackgroundRetained extends LeafRetained {
texture = (Texture2DRetained) tex2D.retained;
// Background is special case of Raster.
texture.setUseAsRaster(true);
+ // Fix to issue 373 : ImageComponent.set(BufferedImage) ignored when used by Background
+ image.addUser(texture);
texture.initImage(0,img);
}
}
diff --git a/src/classes/share/javax/media/j3d/RasterRetained.java b/src/classes/share/javax/media/j3d/RasterRetained.java
index b1aa0d4..0f0e3ca 100644
--- a/src/classes/share/javax/media/j3d/RasterRetained.java
+++ b/src/classes/share/javax/media/j3d/RasterRetained.java
@@ -236,6 +236,8 @@ class RasterRetained extends GeometryRetained {
img.getWidth(), img.getHeight());
texture = (Texture2DRetained) tex2D.retained;
texture.setUseAsRaster(true);
+ // Fix to issue 372 : ImageComponent.set(BufferedImage) ignored when used by Raster
+ image.addUser(texture);
texture.initImage(0,img);
}