demos/engine: respect display list mode when drawing pistons

This commit is contained in:
Keith Whitwell 2009-03-03 15:39:51 +00:00
parent 4737a9fa25
commit 39a1a24b3f

View file

@ -386,7 +386,10 @@ DrawPositionedPiston(const Engine *eng, float crankAngle)
glPushMatrix();
glRotatef(-90, 1, 0, 0);
glTranslatef(0, 0, pos);
DrawPiston(eng);
if (eng->PistonList)
glCallList(eng->PistonList);
else
DrawPiston(eng);
glPopMatrix();
}