summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-06-04 20:01:53 +0200
committerSubv <subv2112@gmail.com>2018-06-04 20:01:53 +0200
commitcb47abecc6ba70b850dc0f8d4d5c2fcc97e7beec (patch)
tree680007e4c5203bd258034d64ad0eb2eae59e2669
parentMerge pull request #499 from bunnei/am-stuff (diff)
downloadyuzu-cb47abecc6ba70b850dc0f8d4d5c2fcc97e7beec.tar
yuzu-cb47abecc6ba70b850dc0f8d4d5c2fcc97e7beec.tar.gz
yuzu-cb47abecc6ba70b850dc0f8d4d5c2fcc97e7beec.tar.bz2
yuzu-cb47abecc6ba70b850dc0f8d4d5c2fcc97e7beec.tar.lz
yuzu-cb47abecc6ba70b850dc0f8d4d5c2fcc97e7beec.tar.xz
yuzu-cb47abecc6ba70b850dc0f8d4d5c2fcc97e7beec.tar.zst
yuzu-cb47abecc6ba70b850dc0f8d4d5c2fcc97e7beec.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index 65d643447..d6048f639 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/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 =