diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-08 21:30:10 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-08 21:47:45 +0100 |
commit | 3121408a905024372cf65b964c0178d447770905 (patch) | |
tree | 502fdead6b453ad85c816b14c38b34ce8c8b83a8 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1999 from ReinUsesLisp/dirty-shader (diff) | |
download | yuzu-3121408a905024372cf65b964c0178d447770905.tar yuzu-3121408a905024372cf65b964c0178d447770905.tar.gz yuzu-3121408a905024372cf65b964c0178d447770905.tar.bz2 yuzu-3121408a905024372cf65b964c0178d447770905.tar.lz yuzu-3121408a905024372cf65b964c0178d447770905.tar.xz yuzu-3121408a905024372cf65b964c0178d447770905.tar.zst yuzu-3121408a905024372cf65b964c0178d447770905.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 37f01d4f7..73567eb8c 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -101,7 +101,7 @@ struct FramebufferCacheKey { RasterizerOpenGL::RasterizerOpenGL(Core::Frontend::EmuWindow& window, ScreenInfo& info) : res_cache{*this}, shader_cache{*this}, emu_window{window}, screen_info{info}, - buffer_cache(*this, STREAM_BUFFER_SIZE) { + buffer_cache(*this, STREAM_BUFFER_SIZE), global_cache{*this} { // Create sampler objects for (std::size_t i = 0; i < texture_samplers.size(); ++i) { texture_samplers[i].Create(); @@ -763,6 +763,7 @@ void RasterizerOpenGL::InvalidateRegion(VAddr addr, u64 size) { MICROPROFILE_SCOPE(OpenGL_CacheManagement); res_cache.InvalidateRegion(addr, size); shader_cache.InvalidateRegion(addr, size); + global_cache.InvalidateRegion(addr, size); buffer_cache.InvalidateRegion(addr, size); } |