aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-23 17:31:08 +0200
committerSven Gothel <[email protected]>2012-10-23 17:31:08 +0200
commit133d7b82d47b2918af042944158e9b09e2663855 (patch)
tree1cb32e6fbf257847139a050d77723c9d286fbb43 /src/jogl/classes/com
parent53d54caf6ee7ea24bcc93599300e06bf455c75aa (diff)
Fix regression of commit 40d01bef2a1db44533472c37961aabbef68de644: Test for fourth element was invalid
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java b/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java
index 888fa526a..f01896b96 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/ImmModeSink.java
@@ -1222,7 +1222,7 @@ public class ImmModeSink {
final Buffer dest;
final boolean dSigned;
- final int e;
+ final int e; // either 0 or 1
switch (type) {
case VERTEX:
@@ -1258,7 +1258,7 @@ public class ImmModeSink {
fill--;
Buffers.putNf(dest, dSigned, 0f);
}
- if( e > 0 ) {
+ if( fill > 0 ) { // e == 1, add missing '1f end component'
Buffers.putNf(dest, dSigned, 1f);
}
}