summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core')
-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