diff options
author | Sven Gothel <[email protected]> | 2012-10-10 17:32:28 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-10 17:32:28 +0200 |
commit | fb3795504f7b05000651a9ea558dbb1b2a3b16f5 (patch) | |
tree | 28d35afaafbf2e64c388339121b79a0ec9c6e10c | |
parent | 70d5b080a196bf9cbb71938e443c1110d9ea989c (diff) |
GLUniformData.toString() matrix: Add matrix offset ..
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLUniformData.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLUniformData.java b/src/jogl/classes/javax/media/opengl/GLUniformData.java index 81bbe0244..9638ba8d8 100644 --- a/src/jogl/classes/javax/media/opengl/GLUniformData.java +++ b/src/jogl/classes/javax/media/opengl/GLUniformData.java @@ -85,7 +85,7 @@ public class GLUniformData { sb.append("\n"); final FloatBuffer fb = (FloatBuffer)getBuffer(); for(int i=0; i<count; i++) { - FloatUtil.matrixToString(sb, i+": ", "%10.5f", fb, 0, rows, columns, false); + FloatUtil.matrixToString(sb, i+": ", "%10.5f", fb, i*rows*columns, rows, columns, false); sb.append(",\n"); } } else if(isBuffer()) { |