diff options
Diffstat (limited to 'src/classes/javax/media/opengl/util/VBOBufferDraw.java')
-rw-r--r-- | src/classes/javax/media/opengl/util/VBOBufferDraw.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/classes/javax/media/opengl/util/VBOBufferDraw.java b/src/classes/javax/media/opengl/util/VBOBufferDraw.java index 7a7a3d9a6..34b1be0b1 100644 --- a/src/classes/javax/media/opengl/util/VBOBufferDraw.java +++ b/src/classes/javax/media/opengl/util/VBOBufferDraw.java @@ -325,7 +325,7 @@ public abstract class VBOBufferDraw { if(clazz==FloatBuffer.class) { ((FloatBuffer)buffer).put(v); } else if(clazz==IntBuffer.class) { - ((IntBuffer)buffer).put(Float2Fixed(v)); + ((IntBuffer)buffer).put(FixedPoint.toFixed(v)); } else { throw new GLException("Float doesn't match Buffer Class: "+clazz+" :\n\t"+this); } @@ -357,13 +357,6 @@ public abstract class VBOBufferDraw { "]"; } - public static final int Float2Fixed(float value) - { - if (value < -32768) value = -32768; - if (value > 32767) value = 32767; - return (int)(value * 65536); - } - protected int glArrayType; protected int glDataType; protected Class clazz; |