mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
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:
parent
a76ef97f15
commit
f6320c8de9
1 changed files with 2 additions and 1 deletions
|
@ -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});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue