aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorphil <[email protected]>2016-12-07 19:16:29 +1300
committerphil <[email protected]>2016-12-07 19:16:29 +1300
commitb2ed893669ff5cb171d67107c02dec3bb9611a7d (patch)
tree33649b355ae934cb5e1da84141fad3f30c872f29 /src/main
parentb9ca5f458228492ef3dfba6b85c8cc188860f42e (diff)
Gl2es2Pipeline executed contexts for Geometry not recorded in Indexed
Diffstat (limited to 'src/main')
-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;