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
This commit is contained in:
Venkat Rao 2022-11-12 00:08:26 -06:00 committed by GitHub
parent a76ef97f15
commit f6320c8de9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,7 +368,8 @@ void CachedSurface::UploadGLTexture(Common::Rectangle<u32> rect) {
const u32 height = is_custom ? custom_tex_info.height : rect.GetHeight();
const Common::Rectangle<u32> 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});
}