- fixed: GLRenderer::DrawTexture aborted with non-standard DTA_WindowWidth/DTA_WindowHeight values.

This has never been implemented since the ZDoomGL days but the recent change to floating point caused
  this check to abort for valid textures.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@617 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2009-11-09 15:04:27 +00:00
parent 8f56711362
commit 1dfe0cf6aa
3 changed files with 32 additions and 29 deletions

View file

@ -258,10 +258,6 @@ angle_t SlopeDiv (unsigned int num, unsigned den)
angle_t R_PointToAngle2 (fixed_t x1, fixed_t y1, fixed_t x, fixed_t y)
{
#if 1
// The precision of the code below is abysmal so use the CRT atan2 function instead!
return quickertoint((float)(atan2f(float(y-y1), float(x-x1)) * (ANGLE_180/M_PI)));
#else
x -= x1;
y -= y1;
@ -323,7 +319,6 @@ angle_t R_PointToAngle2 (fixed_t x1, fixed_t y1, fixed_t x, fixed_t y)
}
}
}
#endif
}
//==========================================================================