From eaad3682302d31737d06068bc6471511ee3cbe59 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sun, 9 Oct 2011 13:42:26 +0800 Subject: [PATCH] --- scene.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scene.c b/scene.c index 0590299..f55aa88 100644 --- a/scene.c +++ b/scene.c @@ -484,8 +484,7 @@ void mouse(int btn, int state, int x, int y) { * Display function */ void display() { - // You probably want to change both of the following. - glClear(GL_COLOR_BUFFER_BIT); + glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glFlush(); } -- 2.20.1