(no commit message)
authorAsh Tyndall <[email protected]>
Tue, 18 Oct 2011 08:02:45 +0000 (16:02 +0800)
committerAsh Tyndall <[email protected]>
Tue, 18 Oct 2011 08:02:45 +0000 (16:02 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 82d3cef..e1dbe14 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -549,7 +549,6 @@ void display() {
   lightPosition[2] = 12*sin(lightAngle);\r
   lightPosition[3] = 0.0;\r
 \r
-  glMatrixMode(GL_PROJECTION);\r
   glPushMatrix();\r
     glLightfv(GL_LIGHT0, GL_POSITION, lightPosition);\r
 \r
@@ -559,8 +558,8 @@ void display() {
     glDisable(GL_BLEND);\r
 \r
     glPushMatrix();\r
-      glLoadIdentity();\r
-      glTranslatef(0.0, -90.0, -60.0);\r
+   \r
+      glTranslatef(0.0, 0.0, 0.0);\r
 \r
       glutSolidTeapot(5); // Draw teapot for test\r
     glPopMatrix();\r

UCC git Repository :: git.ucc.asn.au