mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Do not apply the texture coordinate offset to background textures.
Fixes #2594
This commit is contained in:
parent
e6d754a5d1
commit
aea67fb370
|
@ -1096,8 +1096,10 @@ public:
|
||||||
aShiftScale[t][0] = pTile->shifts > 10 ? static_cast<f32>(1 << (16 - pTile->shifts)) : 1.0f / static_cast<f32>(1 << pTile->shifts);
|
aShiftScale[t][0] = pTile->shifts > 10 ? static_cast<f32>(1 << (16 - pTile->shifts)) : 1.0f / static_cast<f32>(1 << pTile->shifts);
|
||||||
aShiftScale[t][1] = pTile->shiftt > 10 ? static_cast<f32>(1 << (16 - pTile->shiftt)) : 1.0f / static_cast<f32>(1 << pTile->shiftt);
|
aShiftScale[t][1] = pTile->shiftt > 10 ? static_cast<f32>(1 << (16 - pTile->shiftt)) : 1.0f / static_cast<f32>(1 << pTile->shiftt);
|
||||||
|
|
||||||
aTexOffset[t][0] = pTile->fuls;
|
if (pTile->textureMode != TEXTUREMODE_BGIMAGE && pTile->textureMode != TEXTUREMODE_FRAMEBUFFER_BG) {
|
||||||
aTexOffset[t][1] = pTile->fult;
|
aTexOffset[t][0] = pTile->fuls;
|
||||||
|
aTexOffset[t][1] = pTile->fult;
|
||||||
|
}
|
||||||
|
|
||||||
aHDRatio[t][0] = pTexture->hdRatioS;
|
aHDRatio[t][0] = pTexture->hdRatioS;
|
||||||
aHDRatio[t][1] = pTexture->hdRatioT;
|
aHDRatio[t][1] = pTexture->hdRatioT;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user