我可以画出你能想到的每一个形状而不会出错,但是一旦我画了一条线,它就会在GL11.glEnd()
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
GL11.glLineWidth(1);
GL11.glBegin(GL11.GL_LINE);
{
GL11.glVertex2i(0, 0);
GL11.glVertex2i(5, 5);
}
GL11.glEnd(); // Exception Here
异常:“OpenGLException:无效枚举(1280)”
有谁知道是什么原因造成的?