mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 23:47:09 +01:00
Better float array buffering
This commit is contained in:
parent
3c52a2cc53
commit
b85bf14ad9
1 changed files with 2 additions and 5 deletions
|
@ -37,11 +37,8 @@ public class VecBuffer {
|
|||
|
||||
public VecBuffer putFloatArray(float[] floats) {
|
||||
|
||||
for (float f : floats) {
|
||||
internal.putFloat(f);
|
||||
}
|
||||
// internal.asFloatBuffer().put(floats);
|
||||
// internal.position(internal.position() + floats.length * 4);
|
||||
internal.asFloatBuffer().put(floats);
|
||||
internal.position(internal.position() + floats.length * 4);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue