mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
- backend update from Raze.
This commit is contained in:
parent
4100251e25
commit
c9ed4293f7
3 changed files with 2 additions and 10 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue