From 42fc5b37cc2e67d1eea325a3b245f77b2fba8012 Mon Sep 17 00:00:00 2001 From: ejcoumans Date: Wed, 31 Oct 2007 04:39:45 +0000 Subject: [PATCH] fixed drawing issue with new AllInOne demos, glClear/glutSwapBuffers was called twice each frame. --- Demos/AllBulletDemos/Main.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Demos/AllBulletDemos/Main.cpp b/Demos/AllBulletDemos/Main.cpp index df2ffda86..c18f8e53a 100644 --- a/Demos/AllBulletDemos/Main.cpp +++ b/Demos/AllBulletDemos/Main.cpp @@ -107,14 +107,6 @@ void Timer(int) void SimulationLoop() { - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - - glMatrixMode(GL_MODELVIEW); - glLoadIdentity(); - - //test->SetTextLine(30); - //test->Step(&settings); - //sync debugging options if (gDrawAabb) { demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_DrawAabb); @@ -158,11 +150,6 @@ void SimulationLoop() else demo->displayCallback(); - -/// DrawString(5, 15, entry->name); - - glutSwapBuffers(); - if (testSelection != testIndex) { testIndex = testSelection;