[D3D12] Adjust mip size in certain cases to fix techland games
This commit is contained in:
parent
c728fc4733
commit
404f9f53aa
|
@ -2406,8 +2406,13 @@ bool TextureCache::LoadTextureData(Texture* texture) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!mips_in_sync) {
|
if (!mips_in_sync) {
|
||||||
|
if (texture->mip_size == 0xB0000) {
|
||||||
|
XELOGD3D("[D3D] Mip shrinked - this may have unexpected behavior");
|
||||||
|
}
|
||||||
if (!shared_memory_->RequestRange(texture->key.mip_page << 12,
|
if (!shared_memory_->RequestRange(texture->key.mip_page << 12,
|
||||||
texture->mip_size)) {
|
texture->mip_size == 0xB0000
|
||||||
|
? texture->mip_size >> 4
|
||||||
|
: texture->mip_size)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue