yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #513 from Subv/cache_alignment

GLCache: Corrected a mismatch between storing compressed sizes and verifying the uncompressed alignment in GetSurface.
This commit is contained in:
bunnei 2018-06-04 16:12:55 -04:00 committed by GitHub
commit 9936d1b9e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -933,7 +933,8 @@ Surface RasterizerCacheOpenGL::GetSurface(const SurfaceParams& params, ScaleMatc
// Use GetSurfaceSubRect instead // Use GetSurfaceSubRect instead
ASSERT(params.width == params.stride); ASSERT(params.width == params.stride);
ASSERT(!params.is_tiled || (params.width % 8 == 0 && params.height % 8 == 0)); ASSERT(!params.is_tiled ||
(params.GetActualWidth() % 8 == 0 && params.GetActualHeight() % 8 == 0));
// Check for an exact match in existing surfaces // Check for an exact match in existing surfaces
Surface surface = Surface surface =