From 052efe9080e77857530f313ae19f7f4a04cf1026 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Tue, 18 Oct 2011 15:25:57 +0800 Subject: [PATCH] --- scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene.c b/scene.c index 6f02897..19df7a5 100644 --- a/scene.c +++ b/scene.c @@ -581,13 +581,13 @@ void init() { 0.0, /* Z near */ 900.0 /* Z far */ ); - glLoadIdentity(); + glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt( 0.0, 8.0, 60.0, /* eye is at (0,8,60) */ 0.0, 8.0, 0.0, /* center is at (0,8,0) */ - 0.0, 1.0, 0.0 /* up is in postivie Y direction */ + 0.0, 0.0, 1.0 /* up is in postivie Y direction */ ); glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1); -- 2.20.1