summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-31 17:21:15 +0200
committerGitHub <noreply@github.com>2018-08-31 17:21:15 +0200
commit6683bf50b5bf7c88a9781b30fb3be59006b5a549 (patch)
tree5b35b365dd3c11db09fba04fa9ffb7ba30315646 /src
parentMerge pull request #1208 from Hexagon12/pred-comp-14 (diff)
parentReport correct shader size. (diff)
downloadyuzu-6683bf50b5bf7c88a9781b30fb3be59006b5a549.tar
yuzu-6683bf50b5bf7c88a9781b30fb3be59006b5a549.tar.gz
yuzu-6683bf50b5bf7c88a9781b30fb3be59006b5a549.tar.bz2
yuzu-6683bf50b5bf7c88a9781b30fb3be59006b5a549.tar.lz
yuzu-6683bf50b5bf7c88a9781b30fb3be59006b5a549.tar.xz
yuzu-6683bf50b5bf7c88a9781b30fb3be59006b5a549.tar.zst
yuzu-6683bf50b5bf7c88a9781b30fb3be59006b5a549.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.h b/src/video_core/renderer_opengl/gl_shader_cache.h
index 44156dcab..658f9e994 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.h
+++ b/src/video_core/renderer_opengl/gl_shader_cache.h
@@ -30,7 +30,7 @@ public:
/// Gets the size of the shader in guest memory, required for cache management
size_t GetSizeInBytes() const {
- return sizeof(GLShader::ProgramCode);
+ return GLShader::MAX_PROGRAM_CODE_LENGTH * sizeof(u64);
}
/// Gets the shader entries for the shader