diff options
author | Kevin Rushforth <[email protected]> | 2007-04-16 23:32:06 +0000 |
---|---|---|
committer | Kevin Rushforth <[email protected]> | 2007-04-16 23:32:06 +0000 |
commit | a94b5e885413be57d39b6c0e5f65a5917558b7dc (patch) | |
tree | 0cc7fa81811f7ce4b279320ff3c071836b265201 /src/classes | |
parent | c29c72d93cd2979469efc8c4c11b7ee8b87f1176 (diff) |
Fixed issue 362: dynamic assignment of Canvas3D to View makes content disappear
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@822 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/share/javax/media/j3d/Canvas3D.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/classes/share/javax/media/j3d/Canvas3D.java b/src/classes/share/javax/media/j3d/Canvas3D.java index e15da57..8e928e8 100644 --- a/src/classes/share/javax/media/j3d/Canvas3D.java +++ b/src/classes/share/javax/media/j3d/Canvas3D.java @@ -3984,9 +3984,7 @@ public class Canvas3D extends Canvas { cvDirtyMask[0] |= VIEW_INFO_DIRTY; cvDirtyMask[1] |= VIEW_INFO_DIRTY; } - needToRebuildDisplayList = true; - ctxTimeStamp = VirtualUniverse.mc.getContextTimeStamp(); } @@ -4065,7 +4063,13 @@ public class Canvas3D extends Canvas { for (i=0; i < curStateToUpdate.length; i++) { curStateToUpdate[i] = null; } - + + // Issue 362 - need to reset display lists and ctxTimeStamp in this + // method, so that display lists will be recreated when canvas is + // removed from a view and then added back into a view with another + // canvas + needToRebuildDisplayList = true; + ctxTimeStamp = VirtualUniverse.mc.getContextTimeStamp(); } |