mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Code cleanup: remove unused getMirrorClamp function.
This commit is contained in:
parent
fa2ce3f6e7
commit
947fedcbb5
|
@ -1573,22 +1573,3 @@ void getTextureShiftScale(u32 t, const TextureCache & cache, f32 & shiftScaleS,
|
|||
else if (gSP.textureTile[t]->shiftt > 0)
|
||||
shiftScaleT /= (f32)(1 << gSP.textureTile[t]->shiftt);
|
||||
}
|
||||
|
||||
void getMirrorClamp(u32 _tile, const CachedTexture * _pTexture, MirrorClamp& aMirrorClamp)
|
||||
{
|
||||
const gDPTile * pTile = gSP.textureTile[_tile];
|
||||
const u32 tileWidth = ((pTile->lrs - pTile->uls) & 0x03FF) + 1;
|
||||
const u32 tileHeight = ((pTile->lrt - pTile->ult) & 0x03FF) + 1;
|
||||
const bool mirrorClampS = _pTexture->mirrorS && _pTexture->clampS &&
|
||||
tileWidth > _pTexture->width && tileWidth % _pTexture->width == 0;
|
||||
const bool mirrorClampT = _pTexture->mirrorT && _pTexture->clampT &&
|
||||
tileHeight > _pTexture->height && tileHeight % _pTexture->height == 0;
|
||||
if (mirrorClampS) {
|
||||
aMirrorClamp[0] = 0.0f;
|
||||
aMirrorClamp[2] = f32(tileWidth / _pTexture->width);
|
||||
}
|
||||
if (mirrorClampT) {
|
||||
aMirrorClamp[1] = 0.0f;
|
||||
aMirrorClamp[3] = f32(tileHeight / _pTexture->height);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,9 +109,6 @@ private:
|
|||
|
||||
void getTextureShiftScale(u32 tile, const TextureCache & cache, f32 & shiftScaleS, f32 & shiftScaleT);
|
||||
|
||||
using MirrorClamp = std::array<f32, 4>;
|
||||
void getMirrorClamp(u32 _tile, const CachedTexture * _pTexture, MirrorClamp& aMirrorClamp);
|
||||
|
||||
inline TextureCache & textureCache()
|
||||
{
|
||||
return TextureCache::get();
|
||||
|
|
Loading…
Reference in New Issue
Block a user