IosGL: reset buffer position in fromArray()

experimental
Kirill Vainer 10 years ago
parent ca6b492cea
commit 389b117fb6
  1. 2
      jme3-ios/src/main/java/com/jme3/renderer/ios/IosGL.java

@ -90,7 +90,9 @@ public class IosGL implements GL, GLExt {
if (buffer.remaining() < n) {
throw new BufferOverflowException();
}
int pos = buffer.position();
buffer.put(array, 0, n);
buffer.position(pos);
}
private static void checkLimit(Buffer buffer) {

Loading…
Cancel
Save