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) ) {
throw new ArrayIndexOutOfBoundsException(
J3dI18N.getString("GeometryArray113"));
}
} else if ((vertexFormat & GeometryArray.TEXTURE_COORDINATE_4) != 0) {
if (texBuffer.limit() < 4 * (initialTexCoordIndex + validVertexCount)) {