- always create geometry for flat sprites in the collection pass.

This still depends on Build's tsprite array which is global so its contents are too volatile for delayed geometry generation.
This needs to be refactored later but it can only be done when Polymost is gone.
This commit is contained in:
Christoph Oelckers 2021-03-30 19:58:42 +02:00
parent 4647a0b2bc
commit 6239734bdc

View file

@ -146,7 +146,7 @@ void HWFlat::MakeVertices()
//==========================================================================
void HWFlat::DrawFlat(HWDrawInfo *di, FRenderState &state, bool translucent)
{
if (screen->BuffersArePersistent())
if (screen->BuffersArePersistent() && !sprite)
{
MakeVertices();
}
@ -230,7 +230,7 @@ void HWFlat::PutFlat(HWDrawInfo *di, int whichplane)
{
vertcount = 0;
plane = whichplane;
if (!screen->BuffersArePersistent()) // should be made static buffer content later (when the logic is working)
if (!screen->BuffersArePersistent() || sprite) // should be made static buffer content later (when the logic is working)
{
#if 0
if (di->Level->HasDynamicLights && texture != nullptr && !di->isFullbrightScene() && !(hacktype & (SSRF_PLANEHACK | SSRF_FLOODHACK)))