|
|
@ -1062,7 +1062,7 @@ public final class BufferUtils { |
|
|
|
int position = (buffer != null ? buffer.position() : 0); |
|
|
|
int position = (buffer != null ? buffer.position() : 0); |
|
|
|
FloatBuffer newVerts = createFloatBuffer(position + required); |
|
|
|
FloatBuffer newVerts = createFloatBuffer(position + required); |
|
|
|
if (buffer != null) { |
|
|
|
if (buffer != null) { |
|
|
|
buffer.rewind(); |
|
|
|
buffer.flip(); |
|
|
|
newVerts.put(buffer); |
|
|
|
newVerts.put(buffer); |
|
|
|
newVerts.position(position); |
|
|
|
newVerts.position(position); |
|
|
|
} |
|
|
|
} |
|
|
@ -1076,7 +1076,7 @@ public final class BufferUtils { |
|
|
|
int position = (buffer != null ? buffer.position() : 0); |
|
|
|
int position = (buffer != null ? buffer.position() : 0); |
|
|
|
ShortBuffer newVerts = createShortBuffer(position + required); |
|
|
|
ShortBuffer newVerts = createShortBuffer(position + required); |
|
|
|
if (buffer != null) { |
|
|
|
if (buffer != null) { |
|
|
|
buffer.rewind(); |
|
|
|
buffer.flip(); |
|
|
|
newVerts.put(buffer); |
|
|
|
newVerts.put(buffer); |
|
|
|
newVerts.position(position); |
|
|
|
newVerts.position(position); |
|
|
|
} |
|
|
|
} |
|
|
@ -1090,7 +1090,7 @@ public final class BufferUtils { |
|
|
|
int position = (buffer != null ? buffer.position() : 0); |
|
|
|
int position = (buffer != null ? buffer.position() : 0); |
|
|
|
ByteBuffer newVerts = createByteBuffer(position + required); |
|
|
|
ByteBuffer newVerts = createByteBuffer(position + required); |
|
|
|
if (buffer != null) { |
|
|
|
if (buffer != null) { |
|
|
|
buffer.rewind(); |
|
|
|
buffer.flip(); |
|
|
|
newVerts.put(buffer); |
|
|
|
newVerts.put(buffer); |
|
|
|
newVerts.position(position); |
|
|
|
newVerts.position(position); |
|
|
|
} |
|
|
|
} |
|
|
|