diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/javax/media/j3d/ViewPlatformRetained.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/classes/share/javax/media/j3d/ViewPlatformRetained.java b/src/classes/share/javax/media/j3d/ViewPlatformRetained.java index a34df45..47cb248 100644 --- a/src/classes/share/javax/media/j3d/ViewPlatformRetained.java +++ b/src/classes/share/javax/media/j3d/ViewPlatformRetained.java @@ -186,17 +186,15 @@ void setView(View v) { synchronized (viewList) { if (!viewList.contains(v)) { viewList.add(v); + viewListDirty = true; } - viewListDirty = true; } } void removeView(View v) { synchronized (viewList) { - if (viewList.contains(v)) { - viewList.remove(viewList.indexOf(v)); - } - viewListDirty = true; + if (viewList.remove(v)) + viewListDirty = true; } } |