- Fixed: COLORMAP tricks to produce bright lights do not work with the hardware renderer, so do

not hardware accelerate weapon sprites that use them. (see Harmony)

SVN r3170 (trunk)
This commit is contained in:
Randy Heit 2011-03-19 04:45:59 +00:00
commit 3344fa9f30
5 changed files with 62 additions and 6 deletions

View file

@ -2301,6 +2301,14 @@ void R_DrawPSprite (pspdef_t* psp, int pspnum, AActor *owner, fixed_t sx, fixed_
}
}
}
// If the main colormap has fixed lights, and this sprite is being drawn with that
// colormap, disable acceleration so that the lights can remain fixed.
if (!noaccel &&
NormalLightHasFixedLights && mybasecolormap == &NormalLight &&
vis->pic->UseBasePalette())
{
noaccel = true;
}
VisPSpritesBaseColormap[pspnum] = mybasecolormap;
}
else