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