From 39a1a24b3fed6afa24a4db70ad4e3f128c24c815 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 3 Mar 2009 15:39:51 +0000 Subject: demos/engine: respect display list mode when drawing pistons --- progs/demos/engine.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'progs/demos/engine.c') 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(); } -- cgit v1.2.3