Here is my code, the purple line strip appears for a few millis, enough for me to se it flicker then the screen is black. If I remove the triangle and quad, I see a pruple line strip.
private static void render() {
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_STENCIL_BUFFER_BIT);
// TODO: all your rendering goes here
int width = 200;
int height = 25;
int x = (Window.getWidth() - width) / 2;
int y = Window.getHeight() - height - 50;
GL11.glBegin(GL11.GL_LINE_STRIP);
{
GL11.glColor3f(0.4f, 0.0f, 0.7f);
GL11.glVertex2i(x - 1, y);
GL11.glVertex2i(x + width, y);
GL11.glVertex2i(x + width, y + height + 1);
GL11.glVertex2i(x - 1, y + height + 1);
GL11.glVertex2i(x - 1, y);
}
GL11.glEnd();
//GL11.glLoadIdentity(); // Reset The Current Modelview Matrix
GL11.glTranslatef(-1.5f,0.0f,-1.0f); // Move Left 1.5 Units And Into The Screen 6.0
GL11.glBegin(GL11.GL_TRIANGLES); // Drawing Using Triangles
GL11.glColor3f(1.0f,0.0f,0.0f); // Set The Color To Red
GL11.glVertex3f( 0.0f, 1.0f, 0.0f); // Move Up One Unit From Center (Top Point)
GL11.glColor3f(0.0f,1.0f,0.0f); // Set The Color To Green
GL11.glVertex3f(-3.0f,-1.0f, 0.0f); // Left And Down One Unit (Bottom Left)
GL11.glColor3f(0.0f,0.0f,1.0f); // Set The Color To Blue
GL11.glVertex3f( 1.0f,-1.0f, 0.0f); // Right And Down One Unit (Bottom Right)
GL11.glEnd(); // Finished Drawing The Triangle
GL11.glTranslatef(3.0f,0.0f,0.0f); // Move Right 3 Units
GL11.glColor3f(0.5f,0.5f,1.0f); // Set The Color To Blue One Time Only
GL11.glBegin(GL11.GL_QUADS); // Draw A Quad
GL11.glVertex3f(-1.0f, 1.0f, 0.0f); // Top Left
GL11.glVertex3f( 1.0f, 1.0f, 0.0f); // Top Right
GL11.glVertex3f( 1.0f,-1.0f, 0.0f); // Bottom Right
GL11.glVertex3f(-1.0f,-1.0f, 0.0f); // Bottom Left
GL11.glEnd();
// Done Drawing The Quad
}

