mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- 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:
parent
c1786001b2
commit
e0b4dde3cd
3 changed files with 8 additions and 1 deletions
|
@ -215,6 +215,11 @@ public:
|
|||
void SetClipRect(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;
|
||||
};
|
||||
|
||||
|
|
|
@ -347,8 +347,9 @@ void Display()
|
|||
twodpsp.SetSize(screen->GetWidth(), screen->GetHeight());
|
||||
gi->Render();
|
||||
DrawFullscreenBlends();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
[[fallthrough]];
|
||||
|
||||
default:
|
||||
twod->ClearScreen();
|
||||
|
|
|
@ -681,6 +681,7 @@ public:
|
|||
{
|
||||
DeleteJobs();
|
||||
twod->SetScreenFade(1);
|
||||
twod->ClearScreen(); // This must not leave the 2d buffer empty.
|
||||
if (completion) completion(false);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue