GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT); // Clear The Screen And The Depth Buffer
I understand that GL11.glClear first passes GL11.GL_COLOR and when that was successful GL11.GL_DEPTH_BUFFER_BIT?
But that seems to be wrong because my experiment
private static void test(String testtext)
{
System.out.println(testtext);
}
public static void main(String args[])
{
...
test("test 1" | "test 2");
...
}
didn't work.