aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/share/javax
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2007-01-17 01:05:29 +0000
committerKevin Rushforth <[email protected]>2007-01-17 01:05:29 +0000
commit1a9491854e6829deef105527bdb7d5e5664ab66d (patch)
tree481f3fab2f257cced508778854b961741baa2a2b /src/classes/share/javax
parente14139f1321e6b7fb60e8f5a2642a87ee277ac0c (diff)
Fixed issue 435: Memory leak when reusing an Appearance with a single Texture
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@770 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes/share/javax')
-rw-r--r--src/classes/share/javax/media/j3d/AppearanceRetained.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/classes/share/javax/media/j3d/AppearanceRetained.java b/src/classes/share/javax/media/j3d/AppearanceRetained.java
index a6a4383..ff6cb89 100644
--- a/src/classes/share/javax/media/j3d/AppearanceRetained.java
+++ b/src/classes/share/javax/media/j3d/AppearanceRetained.java
@@ -814,6 +814,8 @@ class AppearanceRetained extends NodeComponentRetained {
mirrorApp.material = (MaterialRetained)value;
}
else if ((component & TEXTURE) != 0) {
+ // Issue 435: set mirror texture
+ mirrorApp.texture = (TextureRetained)value;
if (mirrorApp.texUnitState == null) {
mirrorApp.texUnitState = new TextureUnitStateRetained[1];
mirrorApp.texUnitState[0] = new TextureUnitStateRetained();