mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 13:21:04 +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 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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue