aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/jogamp/java3d/IndexedGeometryArrayRetained.java7
-rw-r--r--src/main/java/org/jogamp/java3d/VirtualUniverse.java1
2 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/org/jogamp/java3d/IndexedGeometryArrayRetained.java b/src/main/java/org/jogamp/java3d/IndexedGeometryArrayRetained.java
index e58d8e5..dbcc23d 100644
--- a/src/main/java/org/jogamp/java3d/IndexedGeometryArrayRetained.java
+++ b/src/main/java/org/jogamp/java3d/IndexedGeometryArrayRetained.java
@@ -1159,6 +1159,13 @@ abstract class IndexedGeometryArrayRetained extends GeometryArrayRetained {
boolean updateAlpha, float alpha,
int screen, boolean ignoreVertexColors) {
+ //FIXME: PJPJPJ big ugly hack for buffers
+ if(cv.ctx!= prevContext)
+ {
+ ctxExecutedOn.add(cv.ctx);
+ prevContext = cv.ctx;
+ }
+
int cdirty;
boolean useAlpha = false;
Object[] retVal;
diff --git a/src/main/java/org/jogamp/java3d/VirtualUniverse.java b/src/main/java/org/jogamp/java3d/VirtualUniverse.java
index 4da4396..89b83bd 100644
--- a/src/main/java/org/jogamp/java3d/VirtualUniverse.java
+++ b/src/main/java/org/jogamp/java3d/VirtualUniverse.java
@@ -27,7 +27,6 @@
package org.jogamp.java3d;
import java.util.ArrayList;
-import java.util.Iterator;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;