(no commit message)
authorAsh Tyndall <[email protected]>
Sun, 9 Oct 2011 05:42:26 +0000 (13:42 +0800)
committerAsh Tyndall <[email protected]>
Sun, 9 Oct 2011 05:42:26 +0000 (13:42 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 0590299..f55aa88 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -484,8 +484,7 @@ void mouse(int btn, int state, int x, int y) {
  * Display function\r
  */\r
 void display() {\r
-   // You probably want to change both of the following.\r
-   glClear(GL_COLOR_BUFFER_BIT);\r
+   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\r
    glFlush();\r
 }\r
 \r

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