Direct3D 9 versions of texture loaders (#176)

This commit is contained in:
Chuck Walbourn
2020-05-09 17:22:35 -07:00
committed by GitHub
parent fdd7a70c44
commit 45fb8623d2
18 changed files with 3307 additions and 114 deletions

View File

@@ -923,7 +923,7 @@ namespace
float bestScore = FLT_MAX;
for (size_t y = maxsize; y > 0; y >>= 1)
{
float score = fabs((float(x) / float(y)) - origAR);
float score = fabsf((float(x) / float(y)) - origAR);
if (score < bestScore)
{
bestScore = score;
@@ -940,7 +940,7 @@ namespace
float bestScore = FLT_MAX;
for (size_t x = maxsize; x > 0; x >>= 1)
{
float score = fabs((float(x) / float(y)) - origAR);
float score = fabsf((float(x) / float(y)) - origAR);
if (score < bestScore)
{
bestScore = score;