Explorar el Código

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

Subv hace 8 años
padre
commit
cb47abecc6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/video_core/renderer_opengl/gl_rasterizer_cache.cpp

+ 2 - 1
src/video_core/renderer_opengl/gl_rasterizer_cache.cpp

@@ -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 =