From: Keith Whitwell Date: Tue, 3 Mar 2009 15:39:51 +0000 (+0000) Subject: demos/engine: respect display list mode when drawing pistons X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39a1a24b3fed6afa24a4db70ad4e3f128c24c815;p=mesa.git demos/engine: respect display list mode when drawing pistons --- 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(); }