aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/javax/media/j3d/RenderBin.java3
-rw-r--r--src/classes/share/javax/media/j3d/Renderer.java8
2 files changed, 4 insertions, 7 deletions
diff --git a/src/classes/share/javax/media/j3d/RenderBin.java b/src/classes/share/javax/media/j3d/RenderBin.java
index 5f72730..5a48e72 100644
--- a/src/classes/share/javax/media/j3d/RenderBin.java
+++ b/src/classes/share/javax/media/j3d/RenderBin.java
@@ -683,8 +683,7 @@ ArrayList<RenderAtomListInfo> removeDlistPerRinfo = new ArrayList<RenderAtomList
(texture.resourceCreationMask |
texture.resourceInReloadList)) == 0)) {
- cv.screen.renderer.textureReloadList.add(
- texture);
+ cv.screen.renderer.textureReloadList.add(texture);
texture.resourceInReloadList |=
cv.screen.renderer.rendererBit;
diff --git a/src/classes/share/javax/media/j3d/Renderer.java b/src/classes/share/javax/media/j3d/Renderer.java
index 367f3f2..5c40999 100644
--- a/src/classes/share/javax/media/j3d/Renderer.java
+++ b/src/classes/share/javax/media/j3d/Renderer.java
@@ -138,9 +138,8 @@ ArrayList<RenderAtomListInfo> dirtyRenderAtomList = new ArrayList<RenderAtomList
ArrayList<Integer> textureIdResourceFreeList = new ArrayList<Integer>();
ArrayList<Integer> displayListResourceFreeList = new ArrayList<Integer>();
- // Texture that should be reload
- ArrayList textureReloadList = new ArrayList();
-
+// Texture that should be reload
+ArrayList<TextureRetained> textureReloadList = new ArrayList<TextureRetained>();
J3dMessage[] renderMessage;
@@ -1056,8 +1055,7 @@ ArrayList<TextureRetained> textureIDResourceTable = new ArrayList<TextureRetaine
if (sz > 0) {
for (j = sz-1; j>=0; j--) {
- ((TextureRetained)textureReloadList.get(j)).
- reloadTextureSharedContext(canvas);
+ textureReloadList.get(j).reloadTextureSharedContext(canvas);
}
textureReloadList.clear();
}