diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-10-06 07:18:00 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:30 +0100 |
commit | 31478c6c1b841b9a820742830b136775fafe270f (patch) | |
tree | e8f5644dd6c570cf8ee08e5e23592983162a8ec4 /src/video_core/renderer_opengl/gl_texture_cache.h | |
parent | texture_cache: Refactor scaled image size calculation (diff) | |
download | yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar.gz yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar.bz2 yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar.lz yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar.xz yuzu-31478c6c1b841b9a820742830b136775fafe270f.tar.zst yuzu-31478c6c1b841b9a820742830b136775fafe270f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h index 61f9b0259..cf7f37a16 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.h +++ b/src/video_core/renderer_opengl/gl_texture_cache.h @@ -9,13 +9,16 @@ #include <glad/glad.h> -#include "common/settings.h" #include "shader_recompiler/shader_info.h" #include "video_core/renderer_opengl/gl_resource_manager.h" #include "video_core/renderer_opengl/util_shaders.h" #include "video_core/texture_cache/image_view_base.h" #include "video_core/texture_cache/texture_cache_base.h" +namespace Settings { +struct ResolutionScalingInfo; +} + namespace OpenGL { class Device; @@ -155,7 +158,7 @@ private: std::array<OGLFramebuffer, 3> rescale_draw_fbos; std::array<OGLFramebuffer, 3> rescale_read_fbos; - Settings::ResolutionScalingInfo resolution; + const Settings::ResolutionScalingInfo& resolution; }; class Image : public VideoCommon::ImageBase { @@ -182,7 +185,7 @@ public: GLuint StorageHandle() noexcept; GLuint Handle() const noexcept { - return texture.handle; + return current_texture; } GLuint GlFormat() const noexcept { @@ -211,7 +214,7 @@ private: GLenum gl_format = GL_NONE; GLenum gl_type = GL_NONE; TextureCacheRuntime* runtime{}; - GLuint original_backup{}; + GLuint current_texture{}; }; class ImageView : public VideoCommon::ImageViewBase { |