fixed drawing issue with new AllInOne demos, glClear/glutSwapBuffers was called twice each frame.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user