texBuf[0].limit(oldLimit); buf.limit(oldLimit);
   public void setDetailTexture(int unit, int repeat) {       FloatBuffer buf = texBuf[unit];       if (buf == null || buf.capacity() != texBuf[0].capacity()) {           buf = BufferUtils.createFloatBuffer(texBuf[0].capacity());           texBuf[unit] = buf;       }       buf.clear();       texBuf[0].rewind();       for (int i = 0, len = buf.capacity(); i < len; i++) {           buf.put(repeat * texBuf[0].get());       }   }