aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshua Slack <[email protected]>2013-04-11 18:57:08 -0700
committerJoshua Slack <[email protected]>2013-04-11 18:57:08 -0700
commit9fa402713fdbda48e5176ca66cc83f7a772962c7 (patch)
tree956d18ffcf724f65468fba7ee0f1d24c80c394e2
parent1acc43634af60c805efb56eb2104fc51ab7003bc (diff)
parent676ff4b8209abe31c80d5292566b2b04aa7279d6 (diff)
Merge pull request #39 from gouessej/master
Fixes a regression in JoglClipStateUtil
-rw-r--r--ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglClipStateUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglClipStateUtil.java b/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglClipStateUtil.java
index 33795a6..dfd3c9c 100644
--- a/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglClipStateUtil.java
+++ b/ardor3d-jogl/src/main/java/com/ardor3d/scene/state/jogl/JoglClipStateUtil.java
@@ -68,12 +68,13 @@ public abstract class JoglClipStateUtil {
for (final double planeEqCoeff : state.getPlaneEquations(planeIndex)) {
((FloatBuffer) record.buf).put((float) planeEqCoeff);
}
+ record.buf.flip();
gl.getGLES1().glClipPlanef(GL2ES1.GL_CLIP_PLANE0 + planeIndex, (FloatBuffer) record.buf);
} else {
((DoubleBuffer) record.buf).put(state.getPlaneEquations(planeIndex));
+ record.buf.flip();
gl.getGL2().glClipPlane(GL2ES1.GL_CLIP_PLANE0 + planeIndex, (DoubleBuffer) record.buf);
}
- record.buf.flip();
} else {
// TODO use this suggestion but take into account the good reference frame:
// http://stackoverflow.com/a/13705204