aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogamp/graph/curve/opengl/VBORegion2PGL3.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogamp/graph/curve/opengl/VBORegion2PGL3.java')
-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 a17809d79..066f43afc 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();