private static int getLimitBytes(IntBuffer buffer) {
        checkLimit(buffer);
        return buffer.limit() * 4;
    }
Implements OpenGL ES 2.0 and 3.0 for iOS. 

@author Kirill Vainer, Jesus Oliver
jme3-ios/src/main/java/com/jme3/renderer/ios/IosGL.java