diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/javax/media/j3d/IndexedGeometryArrayRetained.java | 12 | ||||
-rw-r--r-- | src/classes/share/javax/media/j3d/NoopDrawingSurfaceObject.java | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/classes/share/javax/media/j3d/IndexedGeometryArrayRetained.java b/src/classes/share/javax/media/j3d/IndexedGeometryArrayRetained.java index e53565b..fe9c283 100644 --- a/src/classes/share/javax/media/j3d/IndexedGeometryArrayRetained.java +++ b/src/classes/share/javax/media/j3d/IndexedGeometryArrayRetained.java @@ -1611,11 +1611,13 @@ abstract class IndexedGeometryArrayRetained extends GeometryArrayRetained { int computeMaxIndex(int initial, int count, int[] indices) { int maxIndex = 0; - for (int i = initial; i < (initial+count); i++) { - if (indices[i] > maxIndex) { - maxIndex = indices[i]; - } - } + if (indices != null) { + for (int i = initial; i < (initial+count); i++) { + if (indices[i] > maxIndex) { + maxIndex = indices[i]; + } + } + } return maxIndex; } diff --git a/src/classes/share/javax/media/j3d/NoopDrawingSurfaceObject.java b/src/classes/share/javax/media/j3d/NoopDrawingSurfaceObject.java index 5fb3c01..f647094 100644 --- a/src/classes/share/javax/media/j3d/NoopDrawingSurfaceObject.java +++ b/src/classes/share/javax/media/j3d/NoopDrawingSurfaceObject.java @@ -24,13 +24,13 @@ class NoopDrawingSurfaceObject extends DrawingSurfaceObject { } synchronized boolean renderLock() { - System.err.println("NoopDrawingSurfaceObject.renderLock()"); +// System.err.println("NoopDrawingSurfaceObject.renderLock()"); gotDsiLock = true; return true; } synchronized void unLock() { - System.err.println("NoopDrawingSurfaceObject.unLock()"); +// System.err.println("NoopDrawingSurfaceObject.unLock()"); gotDsiLock = false; } |