mirror of
https://github.com/citra-mirror/citra.git
synced 2024-08-19 18:13:21 +02:00
video_core: change "left + width" to "right" in CanSubRect
the constructed rectangle from GetSubRect already has the right info
This commit is contained in:
parent
186ffc235f
commit
aaf496dec7
@ -584,7 +584,7 @@ bool SurfaceParams::CanSubRect(const SurfaceParams& sub_surface) const {
|
|||||||
sub_surface.is_tiled == is_tiled &&
|
sub_surface.is_tiled == is_tiled &&
|
||||||
(sub_surface.addr - addr) % BytesInPixels(is_tiled ? 64 : 1) == 0 &&
|
(sub_surface.addr - addr) % BytesInPixels(is_tiled ? 64 : 1) == 0 &&
|
||||||
(sub_surface.stride == stride || sub_surface.height <= (is_tiled ? 8u : 1u)) &&
|
(sub_surface.stride == stride || sub_surface.height <= (is_tiled ? 8u : 1u)) &&
|
||||||
GetSubRect(sub_surface).left + sub_surface.width <= stride;
|
GetSubRect(sub_surface).right <= stride;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SurfaceParams::CanExpand(const SurfaceParams& expanded_surface) const {
|
bool SurfaceParams::CanExpand(const SurfaceParams& expanded_surface) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user