Commit 6a07be8d authored by Brian Paul's avatar Brian Paul

read-front: move piglit_ortho_projection() to piglit_display()

parent fb33c533
......@@ -47,6 +47,8 @@ piglit_display(void)
static float red[] = {1.0, 0.0, 0.0, 0.0};
static float green[] = {0.0, 1.0, 0.0, 0.0};
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
glClearColor(1.0, 0.0, 0.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT);
glColor4fv(green);
......@@ -65,22 +67,7 @@ piglit_display(void)
}
static void reshape(int width, int height)
{
piglit_width = width;
piglit_height = height;
glViewport(0, 0, width, height);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0.0, width, 0.0, height, -1.0, 1.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
}
void
piglit_init(int argc, char **argv)
{
reshape(piglit_width, piglit_height);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment