diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-04 05:54:54 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-04 05:54:54 +0100 |
commit | 3a49c1a691c7e97b2eea0dffd4c1e05b3296f58c (patch) | |
tree | 5eacf88dbc1d857ade8ef77ced052f6e903b4445 /src/video_core/renderer_opengl/gl_texture_cache.h | |
parent | Merge pull request #5230 from ReinUsesLisp/vulkan-common (diff) | |
download | yuzu-3a49c1a691c7e97b2eea0dffd4c1e05b3296f58c.tar yuzu-3a49c1a691c7e97b2eea0dffd4c1e05b3296f58c.tar.gz yuzu-3a49c1a691c7e97b2eea0dffd4c1e05b3296f58c.tar.bz2 yuzu-3a49c1a691c7e97b2eea0dffd4c1e05b3296f58c.tar.lz yuzu-3a49c1a691c7e97b2eea0dffd4c1e05b3296f58c.tar.xz yuzu-3a49c1a691c7e97b2eea0dffd4c1e05b3296f58c.tar.zst yuzu-3a49c1a691c7e97b2eea0dffd4c1e05b3296f58c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_texture_cache.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_texture_cache.h b/src/video_core/renderer_opengl/gl_texture_cache.h index 04193e31e..15b7c3676 100644 --- a/src/video_core/renderer_opengl/gl_texture_cache.h +++ b/src/video_core/renderer_opengl/gl_texture_cache.h @@ -96,6 +96,10 @@ public: FormatProperties FormatInfo(VideoCommon::ImageType type, GLenum internal_format) const; + bool HasBrokenTextureViewFormats() const noexcept { + return has_broken_texture_view_formats; + } + private: struct StagingBuffers { explicit StagingBuffers(GLenum storage_flags_, GLenum map_flags_); @@ -120,6 +124,7 @@ private: UtilShaders util_shaders; std::array<std::unordered_map<GLenum, FormatProperties>, 3> format_properties; + bool has_broken_texture_view_formats = false; StagingBuffers upload_buffers{GL_MAP_WRITE_BIT, GL_MAP_WRITE_BIT | GL_MAP_FLUSH_EXPLICIT_BIT}; StagingBuffers download_buffers{GL_MAP_READ_BIT, GL_MAP_READ_BIT}; @@ -165,7 +170,6 @@ private: OGLTextureView store_view; OGLBuffer buffer; GLenum gl_internal_format = GL_NONE; - GLenum gl_store_format = GL_NONE; GLenum gl_format = GL_NONE; GLenum gl_type = GL_NONE; }; |