mirror of
https://github.com/blawar/GLideN64.git
synced 2024-06-30 08:24:05 +00:00
Ensure that mipmap shader will not try to load HD textures from atlas.
This commit is contained in:
parent
941e054157
commit
f4d83cd9bd
|
@ -116,8 +116,10 @@ public:
|
||||||
maxTile = std::min(gSP.texture.level, 1u); // Hack for HD textures
|
maxTile = std::min(gSP.texture.level, 1u); // Hack for HD textures
|
||||||
uMaxTile.set(maxTile, _force);
|
uMaxTile.set(maxTile, _force);
|
||||||
|
|
||||||
bool bNoAtlasTex = maxTile == 0 || gDP.otherMode.textureLOD != G_TL_LOD ||
|
bool bNoAtlasTex = (_pTexture != nullptr && _pTexture->bHDTexture) ||
|
||||||
(gDP.otherMode.textureDetail != G_TD_DETAIL && maxTile == 1);
|
maxTile == 0 ||
|
||||||
|
gDP.otherMode.textureLOD != G_TL_LOD ||
|
||||||
|
(gDP.otherMode.textureDetail != G_TD_DETAIL && maxTile == 1);
|
||||||
uNoAtlasTex.set(bNoAtlasTex ? 1 : 0, _force);
|
uNoAtlasTex.set(bNoAtlasTex ? 1 : 0, _force);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user