diff --git a/src/Textures.cpp b/src/Textures.cpp index a3c62212..7d1b09e1 100644 --- a/src/Textures.cpp +++ b/src/Textures.cpp @@ -673,8 +673,8 @@ void _updateCachedTexture(const GHQTexInfo & _info, CachedTexture *_pTexture, u1 _pTexture->scaleS = 1.0f / (_pTexture->maskS ? f32(pow2(widthOrg)) : f32(widthOrg)); _pTexture->scaleT = 1.0f / (_pTexture->maskT ? f32(pow2(heightOrg)) : f32(heightOrg)); - _pTexture->hdRatioS = f32(_info.width / _pTexture->width); - _pTexture->hdRatioT = f32(_info.height / _pTexture->height); + _pTexture->hdRatioS = (f32)(_info.width) / (f32)(_pTexture->width); + _pTexture->hdRatioT = (f32)(_info.height) / (f32)(_pTexture->height); _pTexture->bHDTexture = true; }