1
0
Fork 0
forked from suyu/suyu

GLCache: Corrected a mismatch between storing compressed sizes and verifying the uncompressed alignment in GetSurface.

This commit is contained in:
Subv 2018-06-04 13:01:53 -05:00
parent 049ce242a4
commit cb47abecc6

View file

@ -933,7 +933,8 @@ Surface RasterizerCacheOpenGL::GetSurface(const SurfaceParams& params, ScaleMatc
// Use GetSurfaceSubRect instead
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
Surface surface =