From 6239734bdc85ae774e27db17d2482dbe5d13facf Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 30 Mar 2021 19:58:42 +0200 Subject: [PATCH] - 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. --- source/core/rendering/scene/hw_flats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/rendering/scene/hw_flats.cpp b/source/core/rendering/scene/hw_flats.cpp index 28c010db7..0b80dcceb 100644 --- a/source/core/rendering/scene/hw_flats.cpp +++ b/source/core/rendering/scene/hw_flats.cpp @@ -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)))