aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2006-10-31 22:00:05 +0000
committerChien Yang <[email protected]>2006-10-31 22:00:05 +0000
commit39d2447b26f46265755cc666376c98374bd52bd4 (patch)
tree4b285829f10d116d12640708b9cb5383d282bb09 /src
parentcdfed3217e1ad08ed98f1d9b3492c344906e6d41 (diff)
1) Fixed Issue 372 : ImageComponent.set(BufferedImage) ignored when used by Raster
2) Fixed Issue 373 : ImageComponent.set(BufferedImage) ignored when used by Background git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@736 ba19aa83-45c5-6ac9-afd3-db810772062c
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);
}