mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-01 00:12:55 +00:00
Remove the correct intervals from the surface when validating
This commit is contained in:
parent
ac4c589ab5
commit
7e673af527
|
@ -1285,7 +1285,7 @@ void RasterizerCacheOpenGL::ValidateSurface(const Surface& surface, PAddr addr,
|
|||
if (copy_surface != nullptr) {
|
||||
SurfaceInterval copy_interval = params.GetCopyableInterval(copy_surface);
|
||||
CopySurface(copy_surface, surface, copy_interval);
|
||||
surface->invalid_regions.erase(interval);
|
||||
surface->invalid_regions.erase(copy_interval);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -1293,7 +1293,7 @@ void RasterizerCacheOpenGL::ValidateSurface(const Surface& surface, PAddr addr,
|
|||
FlushRegion(params.addr, params.size);
|
||||
surface->LoadGLBuffer(params.addr, params.end);
|
||||
surface->UploadGLTexture(surface->GetSubRect(params));
|
||||
surface->invalid_regions.erase(interval);
|
||||
surface->invalid_regions.erase(params.GetInterval());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue