1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-27 23:14:05 +00:00

Ensure that mipmap shader will not try to load HD textures from atlas.

This commit is contained in:
Sergey Lipskiy 2022-02-19 13:39:50 +07:00
parent 941e054157
commit f4d83cd9bd

View File

@ -116,8 +116,10 @@ public:
maxTile = std::min(gSP.texture.level, 1u); // Hack for HD textures
uMaxTile.set(maxTile, _force);
bool bNoAtlasTex = maxTile == 0 || gDP.otherMode.textureLOD != G_TL_LOD ||
(gDP.otherMode.textureDetail != G_TD_DETAIL && maxTile == 1);
bool bNoAtlasTex = (_pTexture != nullptr && _pTexture->bHDTexture) ||
maxTile == 0 ||
gDP.otherMode.textureLOD != G_TL_LOD ||
(gDP.otherMode.textureDetail != G_TD_DETAIL && maxTile == 1);
uNoAtlasTex.set(bNoAtlasTex ? 1 : 0, _force);
}