From 28bcb0c0aa9fe63f8551b65ffca1c8c32eb0d9bd Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sun, 9 Oct 2011 19:49:30 +0800 Subject: [PATCH 1/1] --- scene.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene.c b/scene.c index 860d821..ac652d3 100644 --- a/scene.c +++ b/scene.c @@ -510,8 +510,12 @@ 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(); glutSwapBuffers(); } -- 2.20.1