From db2ce035b0f1f0c957ce8dbf998a45b799b8aa29 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sun, 9 Oct 2011 19:50:07 +0800 Subject: [PATCH] --- scene.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scene.c b/scene.c index ac652d3..963f78b 100644 --- a/scene.c +++ b/scene.c @@ -510,12 +510,13 @@ void display() { glTranslatef( 0.0f, 0.0f, -5.0f); // Move into the Screen 10.0 glutSolidTeapot(1); -glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - gluLookAt(0.7f, 0.4f, 0.9f, -2.0f, -1.0f, -7.0f, 1.0f, 10.0f, 1.0f); - glMatrixMode(GL_MODELVIEW); glLoadIdentity(); + gluLookAt(0.7f, 0.4f, 0.9f, -2.0f, -1.0f, -7.0f, 1.0f, 10.0f, 1.0f); + + + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); glutSwapBuffers(); } -- 2.20.1