summaryrefslogtreecommitdiffstats
path: root/progs/demos/engine.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-03-03 15:39:51 +0000
committerKeith Whitwell <[email protected]>2009-03-03 15:40:14 +0000
commit39a1a24b3fed6afa24a4db70ad4e3f128c24c815 (patch)
tree64c18c60d40c3044a06e6266af8b78cf47cee486 /progs/demos/engine.c
parent4737a9fa250b1b000510217c8014b0df6e3a8684 (diff)
demos/engine: respect display list mode when drawing pistons
Diffstat (limited to 'progs/demos/engine.c')
-rw-r--r--progs/demos/engine.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/progs/demos/engine.c b/progs/demos/engine.c
index 14fd1e68629..af437e2f141 100644
--- a/progs/demos/engine.c
+++ b/progs/demos/engine.c
@@ -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();
}