mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
Fix rendering with SW 2D: modf usage was backwards
This commit is contained in:
parent
96a0bee651
commit
3a0d046f7e
1 changed files with 1 additions and 2 deletions
|
@ -204,8 +204,7 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms)
|
|||
|
||||
// There is not enough precision in the drawing routines to keep the full
|
||||
// precision for y0. :(
|
||||
double dummy;
|
||||
sprtopscreen = modf(y0, &dummy);
|
||||
modf(y0, &sprtopscreen);
|
||||
|
||||
double yscale = parms.destheight / img->GetHeight();
|
||||
double iyscale = 1 / yscale;
|
||||
|
|
Loading…
Reference in a new issue