OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4737a9f
)
demos/engine: respect display list mode when drawing pistons
author
Keith Whitwell
<keithw@vmware.com>
Tue, 3 Mar 2009 15:39:51 +0000
(15:39 +0000)
committer
Keith Whitwell
<keithw@vmware.com>
Tue, 3 Mar 2009 15:40:14 +0000
(15:40 +0000)
progs/demos/engine.c
patch
|
blob
|
history
diff --git
a/progs/demos/engine.c
b/progs/demos/engine.c
index
14fd1e6
..
af437e2
100644
(file)
--- 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();
}