From d7196b5573c625ca24b75e617f15d76f0f62c94e Mon Sep 17 00:00:00 2001 From: wwylele Date: Mon, 9 Jul 2018 21:19:14 +0300 Subject: [PATCH] gl_rasterizer_cache: invalidate watchers on (partial) surface invalidation --- src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 5f7ceecaaa..932a8ad9dd 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -1807,6 +1807,7 @@ void RasterizerCacheOpenGL::InvalidateRegion(PAddr addr, u32 size, const Surface const auto interval = cached_surface->GetInterval() & invalid_interval; cached_surface->invalid_regions.insert(interval); + cached_surface->InvalidateAllWatcher(); // Remove only "empty" fill surfaces to avoid destroying and recreating OGL textures if (cached_surface->type == SurfaceType::Fill &&