early-out big invisible polys

This commit is contained in:
David Rose 2008-05-10 22:48:47 +00:00
parent 979896da75
commit 2459a7ddfc

View File

@ -178,6 +178,10 @@ static void FNAME(flat_textured) (ZBuffer *zb,
#define DRAW_INIT() \ #define DRAW_INIT() \
{ \ { \
if (p2->a == 0 && !ACMP(zb, p2->a)) { \
/* This alpha is zero, and we'll never get other than 0. */ \
return; \
} \
texture_levels = zb->current_texture; \ texture_levels = zb->current_texture; \
or0 = p2->r; \ or0 = p2->r; \
og0 = p2->g; \ og0 = p2->g; \
@ -429,6 +433,10 @@ static void FNAME(flat_perspective) (ZBuffer *zb,
#define DRAW_INIT() \ #define DRAW_INIT() \
{ \ { \
if (p2->a == 0 && !ACMP(zb, p2->a)) { \
/* This alpha is zero, and we'll never get other than 0. */ \
return; \
} \
texture_levels = zb->current_texture; \ texture_levels = zb->current_texture; \
fdzdx=(float)dzdx; \ fdzdx=(float)dzdx; \
fndzdx=NB_INTERP * fdzdx; \ fndzdx=NB_INTERP * fdzdx; \