2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

surface_base: Make IsInside() a const member function

This doesn't modify internal state, so this can be made const.
This commit is contained in:
Lioncash 2020-04-15 23:59:33 -04:00
parent e33196d4e7
commit d551c910bb

View file

@ -72,9 +72,9 @@ public:
return (cpu_addr < end) && (cpu_addr_end > start);
}
bool IsInside(const GPUVAddr other_start, const GPUVAddr other_end) {
bool IsInside(const GPUVAddr other_start, const GPUVAddr other_end) const {
const GPUVAddr gpu_addr_end = gpu_addr + guest_memory_size;
return (gpu_addr <= other_start && other_end <= gpu_addr_end);
return gpu_addr <= other_start && other_end <= gpu_addr_end;
}
// Use only when recycling a surface