diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-03-03 15:39:51 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-03-03 15:40:14 +0000 |
commit | 39a1a24b3fed6afa24a4db70ad4e3f128c24c815 (patch) | |
tree | 64c18c60d40c3044a06e6266af8b78cf47cee486 /progs/demos | |
parent | 4737a9fa250b1b000510217c8014b0df6e3a8684 (diff) |
demos/engine: respect display list mode when drawing pistons
Diffstat (limited to 'progs/demos')
-rw-r--r-- | progs/demos/engine.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/progs/demos/engine.c b/progs/demos/engine.c index 14fd1e6862..af437e2f14 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(); } |