aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes')
-rw-r--r--src/classes/share/javax/media/j3d/ViewPlatformRetained.java8
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;
}
}