Drastically reduce the number of (spurious) state changes per frame.
Doubles frames per second drawn here. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4024 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
d4e10b07e9
commit
169e5bcc42
|
@ -38,7 +38,6 @@
|
|||
//*************************************************************************
|
||||
// polygon flags b0..b7: col, b24..b31: anim index
|
||||
|
||||
#define PIE_COLOURKEYED 0x00000800
|
||||
#define PIE_ALPHA 0x00040000
|
||||
#define PIE_NO_CULL 0x00002000
|
||||
|
||||
|
|
|
@ -241,14 +241,6 @@ static inline void pie_PiePoly(const PIEPOLY *poly, const BOOL light)
|
|||
|
||||
if (poly->nVrts >= 3)
|
||||
{
|
||||
if (poly->flags & PIE_COLOURKEYED)
|
||||
{
|
||||
pie_SetAlphaTest(TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
pie_SetAlphaTest(FALSE);
|
||||
}
|
||||
pie_SetAlphaTest(TRUE);
|
||||
if (poly->flags & PIE_NO_CULL)
|
||||
{
|
||||
|
@ -403,10 +395,6 @@ static void pie_Draw3DShape2(iIMDShape *shape, int frame, PIELIGHT colour, PIELI
|
|||
* flag is set. This is weird. FIXME. - Per */
|
||||
piePoly.flags |= PIE_ALPHA;
|
||||
}
|
||||
else if (pieFlag & pie_ADDITIVE)
|
||||
{
|
||||
piePoly.flags &= (0xffffffff-PIE_COLOURKEYED);//dont treat additive images as colour keyed
|
||||
}
|
||||
|
||||
for (n = 0, index = pPolys->pindex;
|
||||
n < pPolys->npnts;
|
||||
|
|
Loading…
Reference in New Issue