- fixed: A screen job that fades out was not rendering its final (black) frame which could result in visual glitches.

Fixes #320
This commit is contained in:
Christoph Oelckers 2020-09-05 15:59:32 +02:00
parent c1786001b2
commit e0b4dde3cd
3 changed files with 8 additions and 1 deletions

View file

@ -215,6 +215,11 @@ public:
void SetClipRect(int x, int y, int w, int h); void SetClipRect(int x, int y, int w, int h);
void GetClipRect(int* x, int* y, int* w, int* h); void GetClipRect(int* x, int* y, int* w, int* h);
int DrawCount() const
{
return mData.Size();
}
bool mIsFirstPass = true; bool mIsFirstPass = true;
}; };

View file

@ -347,8 +347,9 @@ void Display()
twodpsp.SetSize(screen->GetWidth(), screen->GetHeight()); twodpsp.SetSize(screen->GetWidth(), screen->GetHeight());
gi->Render(); gi->Render();
DrawFullscreenBlends(); DrawFullscreenBlends();
break;
} }
break; [[fallthrough]];
default: default:
twod->ClearScreen(); twod->ClearScreen();

View file

@ -681,6 +681,7 @@ public:
{ {
DeleteJobs(); DeleteJobs();
twod->SetScreenFade(1); twod->SetScreenFade(1);
twod->ClearScreen(); // This must not leave the 2d buffer empty.
if (completion) completion(false); if (completion) completion(false);
return false; return false;
} }