aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-01-08 15:56:27 -0800
committerHarvey Harrison <[email protected]>2012-01-08 15:56:27 -0800
commit39b304bec3d77c75d8c15754151042a849d5989c (patch)
tree23cf3f630cb7dacd612be55cb587fbde0b3a7b44 /src/classes
parent4c6cd6c58365bf6aeae466a6084b0dee059479fe (diff)
j3dcore: add type annotations to the textureReload list
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes')
-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();
}