if((vertexFormat & GeometryArray.USE_NIO_BUFFER) != 0){
if((vertexType & TEXCOORD_DEFINED) == TF) {
FloatBuffer texBuffer = (FloatBuffer)refTexCoordsBuffer[texCoordSet].getROBuffer();
if ((vertexFormat & GeometryArray.TEXTURE_COORDINATE_2) != 0) {
if (texBuffer.limit() < 2 * (initialTexCoordIndex+ validVertexCount) ) {
throw new ArrayIndexOutOfBoundsException(
J3dI18N.getString("GeometryArray113"));
}
} else if ((vertexFormat & GeometryArray.TEXTURE_COORDINATE_3) != 0) {
if (texBuffer.limit() < 3 * (initialTexCoordIndex + validVertexCount) ) {