summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphil <[email protected]>2016-10-16 18:45:44 +1300
committerphil <[email protected]>2016-10-16 18:45:44 +1300
commit0496910457a883204be07d80ebaf923d5523868b (patch)
tree75fb03423b3fe3e543f89794cdae22d542d3df92
parent0bc487dd648f43f2fe95f1089a7b4e1c0d249acc (diff)
Object file loading uses by ref as teh default to allow the
gl2es2pipline to use it
-rw-r--r--src/main/java/org/jogamp/java3d/loaders/objectfile/ObjectFile.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/jogamp/java3d/loaders/objectfile/ObjectFile.java b/src/main/java/org/jogamp/java3d/loaders/objectfile/ObjectFile.java
index 0069ae5..4792fc2 100644
--- a/src/main/java/org/jogamp/java3d/loaders/objectfile/ObjectFile.java
+++ b/src/main/java/org/jogamp/java3d/loaders/objectfile/ObjectFile.java
@@ -1181,7 +1181,8 @@ public class ObjectFile implements Loader {
// Put geometry into Shape3d
Shape3D shape = new Shape3D();
// issue 638; default to BY_COPY for consistency
- shape.setGeometry(gi.getGeometryArray(false, false, false));
+ //PJ: gl2es2 requires by ref
+ shape.setGeometry(gi.getGeometryArray(true, false, false));
String matName = (String)groupMaterials.get(curname);
materials.assignMaterial(matName, shape);