Strange, it works fine on my computer. Here's the code I used to test:
import org.lwjgl.opengl.*;
public class ColorTest {
public ColorTest() throws Exception {
Display.create();
GL11.glClearColor(1, 1, 1, 1);
while(!Display.isCloseRequested()) {
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
GL11.glBegin(GL11.GL_QUADS);
GL11.glColor4ub((byte)0, (byte)255, (byte)0, (byte)255);
GL11.glVertex2i(10, 10);
GL11.glVertex2i(50, 10);
GL11.glVertex2i(50, 50);
GL11.glVertex2i(10, 50);
GL11.glEnd();
GL11.glFinish();
Display.update();
}
}
public static void main(String[] args) {
try {
new ColorTest();
}
catch(Exception e) {
e.printStackTrace();
}
}
}
WiESi