From: Ash Tyndall Date: Sun, 9 Oct 2011 11:50:07 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=db2ce035b0f1f0c957ce8dbf998a45b799b8aa29;p=atyndall%2Fcits2231.git --- 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(); }