mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 19:20:08 +01:00
demos/engine: respect display list mode when drawing pistons
This commit is contained in:
parent
4737a9fa25
commit
39a1a24b3f
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue