From fd40880127e4272cf5aab1ed3715d130ae9b8de2 Mon Sep 17 00:00:00 2001 From: GPUCode <47210458+GPUCode@users.noreply.github.com> Date: Sun, 4 Sep 2022 12:54:52 +0300 Subject: [PATCH] rasterizer_cache: Ignore fill surfaces * Causes graphical bugs in Yokai games --- src/video_core/rasterizer_cache/rasterizer_cache.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video_core/rasterizer_cache/rasterizer_cache.cpp b/src/video_core/rasterizer_cache/rasterizer_cache.cpp index b5dcf93fb..f2db5b2de 100644 --- a/src/video_core/rasterizer_cache/rasterizer_cache.cpp +++ b/src/video_core/rasterizer_cache/rasterizer_cache.cpp @@ -846,8 +846,7 @@ bool RasterizerCacheOpenGL::IntervalHasInvalidPixelFormat(SurfaceParams& params, params.pixel_format = PixelFormat::Invalid; for (const auto& set : RangeFromInterval(surface_cache, interval)) for (const auto& surface : set.second) - if (surface->pixel_format == PixelFormat::Invalid && - surface->type != SurfaceType::Fill) { + if (surface->pixel_format == PixelFormat::Invalid) { LOG_DEBUG(Render_OpenGL, "Surface {:#x} found with invalid pixel format", surface->addr); return true;