mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-14 03:40:50 +00:00
- 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:
parent
4647a0b2bc
commit
6239734bdc
1 changed files with 2 additions and 2 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue