Repeating textures on Mesh merge

I have 2 (1x1) Quads that i will merge the meshes of into 1 (1x2) rectangle (for rendering efficiency).

It must not be visible, so the texture on the left half of the rectangle must be repeated on the right.



If I just merge the meshes to the rectangle then the texture gets stretched (2x).

If I merge and then double the texCoords then the left half of the rectangle gets a good texture but the right side is black.



How do I achieve the repeating texture that I need?



TY

Nevermind, I found it



texture.setWrap(WrapMode.Repeat); // make the texture repeat in stead of show black pixels

mesh.scaleTextureCoordinates(new Vector2f(2,1)); // make the texture wrap over something twice as wide