diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-09-18 06:43:41 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:30 +0100 |
commit | b027fac7945184d644aa00940e528a20edcf0d06 (patch) | |
tree | 302d34b7e09cf8ca5c2cd6760e24a5494fbf9fb9 /src/video_core/renderer_opengl/gl_texture_cache.cpp | |
parent | vk_texture_cache: Minor cleanup (diff) | |
download | yuzu-b027fac7945184d644aa00940e528a20edcf0d06.tar yuzu-b027fac7945184d644aa00940e528a20edcf0d06.tar.gz yuzu-b027fac7945184d644aa00940e528a20edcf0d06.tar.bz2 yuzu-b027fac7945184d644aa00940e528a20edcf0d06.tar.lz yuzu-b027fac7945184d644aa00940e528a20edcf0d06.tar.xz yuzu-b027fac7945184d644aa00940e528a20edcf0d06.tar.zst yuzu-b027fac7945184d644aa00940e528a20edcf0d06.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.cpp b/src/video_core/renderer_opengl/gl_texture_cache.cpp index 22fffb19b..64bd88c3b 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.cpp +++ b/src/video_core/renderer_opengl/gl_texture_cache.cpp @@ -474,8 +474,7 @@ TextureCacheRuntime::TextureCacheRuntime(const Device& device_, ProgramManager& set_view(Shader::TextureType::ColorArrayCube, null_image_cube_array.handle); resolution = Settings::values.resolution_info; - is_rescaling_on = resolution.up_scale != 1 || resolution.down_shift != 0; - if (is_rescaling_on) { + if (resolution.active) { rescale_draw_fbo.Create(); rescale_read_fbo.Create(); @@ -957,7 +956,7 @@ bool Image::ScaleUp() { if (True(flags & ImageFlagBits::Rescaled)) { return false; } - if (!runtime->is_rescaling_on) { + if (!runtime->resolution.active) { return false; } if (gl_format == 0 && gl_type == 0) { |