Texture Mapping

Hi, I am getting a big gap between my texture and the gap will change whenever I change the glTexCoor2d(x,y) and also the image size. It is kinda weird.Is there anything to solve this problem?

img.getTextureReference().setTextureWrap(GL_REPEAT,GL_REPEAT);
img.getTextureReference().setTextureMinMagFilter(GL_LINEAR,GL_LINEAR);

img.getTextureReference().bind();
glBegin(GL_QUADS);

glTexCoord2d(0.0,0.0); glVertex3f(-400, +250, +depth);//Left wall
glTexCoord2d(3.0,0.0); glVertex3f(-400, +250, -depth);
glTexCoord2d(3.0,1.0); glVertex3f(-400, -250, -depth);
glTexCoord2d(0.0,1.0); glVertex3f(-400, -250, +depth);
glEnd();
img.getTextureReference().unbind();

@miaOnDeLine: Have you resolve this?

I´m trying to make the textures to repeat the content for a multiTextured terrain and I found it imposible.

  
  
ground.allocate(width, height, OF_IMAGE_COLOR);  
ground.loadImage("ground.png");  
ground.getTextureReference().setTextureWrap(GL_REPEAT, GL_REPEAT);  
ground.getTextureReference().setTextureMinMagFilter(GL_LINEAR_MIPMAP_LINEAR,GL_LINEAR_MIPMAP_LINEAR );  
  
glBegin(GL_QUADS);  
glTexCoord2f(0, 0); glVertex3f(0, 0, 0);  
glTexCoord2f(width, 0); glVertex3f(width, 0, 0);  
glTexCoord2f(width, height); glVertex3f(width, height, 0);  
glTexCoord2f(0,height);  glVertex3f(0,height, 0);  
glEnd();  
  

Any idea?