summaryrefslogtreecommitdiffstats
path: root/src/jogamp/graph/curve
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogamp/graph/curve')
-rw-r--r--src/jogamp/graph/curve/opengl/VBORegion2PGL3.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java b/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java
index baca05dc7..ac2be6097 100644
--- a/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java
+++ b/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java
@@ -121,8 +121,12 @@ public class VBORegion2PGL3 implements Region{
verticesBuffer.put(v.getY());
}
verticesBuffer.put(v.getZ());
-
- box.resize(v.getX(), -1*v.getY(), v.getZ());
+ if(flipped){
+ box.resize(v.getX(), -1*v.getY(), v.getZ());
+ }
+ else{
+ box.resize(v.getX(), v.getY(), v.getZ());
+ }
}
verticesBuffer.rewind();