From f6320c8de98fd4598c88e9827556859588d0313c Mon Sep 17 00:00:00 2001 From: Venkat Rao Date: Sat, 12 Nov 2022 00:08:26 -0600 Subject: [PATCH] Reduce bugginess when texture filtering and custom textures both enabled (#6184) * fixed some (but not all) glitchy behavior when texture filtering & custom textures both enabled * fix clang format --- src/video_core/rasterizer_cache/cached_surface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_core/rasterizer_cache/cached_surface.cpp b/src/video_core/rasterizer_cache/cached_surface.cpp index 77221d27d..d09358b8f 100644 --- a/src/video_core/rasterizer_cache/cached_surface.cpp +++ b/src/video_core/rasterizer_cache/cached_surface.cpp @@ -368,7 +368,8 @@ void CachedSurface::UploadGLTexture(Common::Rectangle rect) { const u32 height = is_custom ? custom_tex_info.height : rect.GetHeight(); const Common::Rectangle from_rect{0, height, width, 0}; - if (!owner.texture_filterer->Filter(unscaled_tex, from_rect, texture, scaled_rect, type)) { + if (is_custom || + !owner.texture_filterer->Filter(unscaled_tex, from_rect, texture, scaled_rect, type)) { const Aspect aspect = ToAspect(type); runtime.BlitTextures(unscaled_tex, {aspect, from_rect}, texture, {aspect, scaled_rect}); }