rasterizer_cache: Ignore fill surfaces

* Causes graphical bugs in Yokai games
master
GPUCode 2022-09-04 12:54:52 +07:00 committed by GitHub
parent 47c4f31c8d
commit fd40880127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

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