mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-07 12:05:52 +00:00
GPU/HW: Fix incorrect source rect for page replacements
This commit is contained in:
parent
ac4ef4f853
commit
4ce48abfc1
@ -2990,8 +2990,8 @@ void GPUTextureCache::GetTexturePageTextureReplacements(std::vector<TextureRepla
|
||||
continue;
|
||||
|
||||
const GSVector2 scale = GSVector2(texture->GetSizeVec()) / GSVector2(name.GetSizeVec());
|
||||
replacements.push_back(TextureReplacementSubImage{rect_in_page_space, GSVector4i::loadh(texture->GetSizeVec()),
|
||||
texture, scale.x, scale.y, name.IsSemitransparent()});
|
||||
replacements.push_back(TextureReplacementSubImage{rect_in_page_space, GSVector4i::loadh(name.GetSizeVec()), texture,
|
||||
scale.x, scale.y, name.IsSemitransparent()});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user