mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-25 17:21:55 +01:00
Merge pull request #4633 from BreadFish64/fully-invalid
video_core: improve efficiency of CachedSurface::IsSurfaceFullyInvalid
This commit is contained in:
commit
4b2397aa77
@ -344,7 +344,8 @@ struct CachedSurface : SurfaceParams, std::enable_shared_from_this<CachedSurface
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool IsSurfaceFullyInvalid() const {
|
bool IsSurfaceFullyInvalid() const {
|
||||||
return (invalid_regions & GetInterval()) == SurfaceRegions(GetInterval());
|
auto interval = GetInterval();
|
||||||
|
return *invalid_regions.equal_range(interval).first == interval;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool registered = false;
|
bool registered = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user