diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-03-03 15:43:12 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-03-03 15:43:12 +0000 |
commit | 1d4d27802d1e0e51d5f91fe9cb1ae9b6d57cae30 (patch) | |
tree | 2bf23c1250d2c6c069151d1dd9f806ddbfdfeab2 /progs | |
parent | c7e46c1857b744a35c086dddb651f38df948a5fa (diff) | |
parent | 39a1a24b3fed6afa24a4db70ad4e3f128c24c815 (diff) |
Merge commit 'origin/master' into gallium-map-range
Diffstat (limited to 'progs')
-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(); } |