mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-18 06:30:03 +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
@ -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 New Issue
Block a user