Skip to content
Snippets Groups Projects
Unverified Commit 60e8de7c authored by Rodrigo Locatti's avatar Rodrigo Locatti Committed by GitHub
Browse files

Merge pull request #3687 from lioncash/constness

surface_base: Make IsInside() a const member function
parents 61296639 d551c910
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment