- backend update from Raze.

This commit is contained in:
Christoph Oelckers 2021-02-12 14:40:34 +01:00
parent 4100251e25
commit c9ed4293f7
3 changed files with 2 additions and 10 deletions

View file

@ -746,6 +746,8 @@ void F2DDrawer::AddPoly(FGameTexture* img, FVector4* vt, size_t vtcount, unsigne
RenderCommand dg; RenderCommand dg;
int method = 0; int method = 0;
if (!img->isValid()) return;
dg.mType = DrawTypeTriangles; dg.mType = DrawTypeTriangles;
if (clipx1 > 0 || clipy1 > 0 || clipx2 < GetWidth() - 1 || clipy2 < GetHeight() - 1) if (clipx1 > 0 || clipy1 > 0 || clipx2 < GetWidth() - 1 || clipy2 < GetHeight() - 1)
{ {

View file

@ -185,15 +185,6 @@ double I_GetTimeFrac()
return (CurrentFrameStartTime - ticStartTime) / (double)(ticNextTime - ticStartTime); return (CurrentFrameStartTime - ticStartTime) / (double)(ticNextTime - ticStartTime);
} }
double I_GetBuildTimeFrac()
{
int currentTic = NSToBuildTic(CurrentFrameStartTime - FirstFrameStartTime);
uint64_t ticStartTime = FirstFrameStartTime + BuildTicToNS(currentTic);
uint64_t ticNextTime = FirstFrameStartTime + BuildTicToNS(currentTic + 1);
return (CurrentFrameStartTime - ticStartTime) / (double)(ticNextTime - ticStartTime);
}
void I_FreezeTime(bool frozen) void I_FreezeTime(bool frozen)
{ {
if (frozen) if (frozen)

View file

@ -17,7 +17,6 @@ uint64_t I_GetTimeNS();
int I_GetBuildTime(); int I_GetBuildTime();
double I_GetTimeFrac(); double I_GetTimeFrac();
double I_GetBuildTimeFrac();
// like I_GetTime, except it waits for a new tic before returning // like I_GetTime, except it waits for a new tic before returning
int I_WaitForTic(int); int I_WaitForTic(int);