diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-16 19:50:12 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-22 17:36:25 +0200 |
commit | 644588fd883fb45bf6d1cb7895e98ec65120c7f1 (patch) | |
tree | bba62ddc70e779d34591d5c37746dcc38238c8b1 /src/video_core/renderer_opengl/gl_shader_cache.h | |
parent | Address Feedback. (diff) | |
download | yuzu-644588fd883fb45bf6d1cb7895e98ec65120c7f1.tar yuzu-644588fd883fb45bf6d1cb7895e98ec65120c7f1.tar.gz yuzu-644588fd883fb45bf6d1cb7895e98ec65120c7f1.tar.bz2 yuzu-644588fd883fb45bf6d1cb7895e98ec65120c7f1.tar.lz yuzu-644588fd883fb45bf6d1cb7895e98ec65120c7f1.tar.xz yuzu-644588fd883fb45bf6d1cb7895e98ec65120c7f1.tar.zst yuzu-644588fd883fb45bf6d1cb7895e98ec65120c7f1.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.h b/src/video_core/renderer_opengl/gl_shader_cache.h index c836df5bd..91690b470 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.h +++ b/src/video_core/renderer_opengl/gl_shader_cache.h @@ -125,6 +125,9 @@ private: ShaderDiskCacheOpenGL disk_cache; std::unordered_map<u64, PrecompiledShader> runtime_cache; + Shader null_shader{}; + Shader null_kernel{}; + std::array<Shader, Maxwell::MaxShaderProgram> last_shaders; }; |