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()
|
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)
|
if (gDrawAabb)
|
||||||
{
|
{
|
||||||
demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_DrawAabb);
|
demo->setDebugMode(demo->getDebugMode() |btIDebugDraw::DBG_DrawAabb);
|
||||||
@@ -158,11 +150,6 @@ void SimulationLoop()
|
|||||||
else
|
else
|
||||||
demo->displayCallback();
|
demo->displayCallback();
|
||||||
|
|
||||||
|
|
||||||
/// DrawString(5, 15, entry->name);
|
|
||||||
|
|
||||||
glutSwapBuffers();
|
|
||||||
|
|
||||||
if (testSelection != testIndex)
|
if (testSelection != testIndex)
|
||||||
{
|
{
|
||||||
testIndex = testSelection;
|
testIndex = testSelection;
|
||||||
|
|||||||
Reference in New Issue
Block a user