fixed drawing issue with new AllInOne demos, glClear/glutSwapBuffers was called twice each frame.

This commit is contained in:
ejcoumans
2007-10-31 04:39:45 +00:00
parent c36133cbd5
commit 42fc5b37cc

View File

@@ -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;