[D3D12] Adjust mip size in certain cases to fix techland games
This commit is contained in:
parent
8a9b8c8cde
commit
ca0fc1cd88
|
@ -2406,8 +2406,13 @@ bool TextureCache::LoadTextureData(Texture* texture) {
|
|||
}
|
||||
}
|
||||
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,
|
||||
texture->mip_size)) {
|
||||
texture->mip_size == 0xB0000
|
||||
? texture->mip_size >> 4
|
||||
: texture->mip_size)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue