Java 我的纹理不是';无法正确渲染

Java 我的纹理不是';无法正确渲染,java,opengl,lwjgl,Java,Opengl,Lwjgl,我将窗口初始化为800x600 try { Display.setDisplayMode(new DisplayMode(800,600)); Display.create(); Mouse.create(); Keyboard.create(); } catch (LWJGLException e) { e.printStackTrace(); } 然后我创建了一个带有800x100纹理的

我将窗口初始化为800x600

    try {
        Display.setDisplayMode(new DisplayMode(800,600));
        Display.create();
        Mouse.create();
        Keyboard.create();
    } catch (LWJGLException e) {
        e.printStackTrace();
    }
然后我创建了一个带有800x100纹理的800x100按钮

public MenuButton(int x, int y, int height, int width, Texture tex, Texture border){
    this.x = x;
    this.y = y;
    this.x2 = x + width;
    this.y2 = y + height;
    this.tex = tex;
    this.border = border;
}
然后我尝试渲染它

this.border.bind();
Color.white.bind();
glBegin(GL_QUADS);
GL11.glTexCoord2f(0, 0);
glVertex2f(this.x, this.y2);
GL11.glTexCoord2f(1, 0);
glVertex2f(this.x2, this.y2);
GL11.glTexCoord2f(1, 1);
glVertex2f(this.x2, this.y);
GL11.glTexCoord2f(0, 1);
glVertex2f(this.x, this.y);
glEnd();
但是它并没有像它应该的那样在显示器上走到尽头,而是走了大约80%的路,在显示器边缘和按钮下面有两条线