mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 23:06:23 -05:00
Texture_Cache: Correct Linear Structural Match.
This commit is contained in:
parent
4882c058fd
commit
5d31bab69a
1 changed files with 6 additions and 3 deletions
|
@ -75,9 +75,12 @@ MatchStructureResult SurfaceBaseImpl::MatchesStructure(const SurfaceParams& rhs)
|
||||||
|
|
||||||
// Linear Surface check
|
// Linear Surface check
|
||||||
if (!params.is_tiled) {
|
if (!params.is_tiled) {
|
||||||
if (std::tie(params.width, params.height, params.pitch) ==
|
if (std::tie(params.height, params.pitch) == std::tie(rhs.height, rhs.pitch)) {
|
||||||
std::tie(rhs.width, rhs.height, rhs.pitch)) {
|
if (params.width == rhs.width) {
|
||||||
return MatchStructureResult::FullMatch;
|
return MatchStructureResult::FullMatch;
|
||||||
|
} else {
|
||||||
|
return MatchStructureResult::SemiMatch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return MatchStructureResult::None;
|
return MatchStructureResult::None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue