From 5be8b7a3629df4f087b57c2488716a5ab1684956 Mon Sep 17 00:00:00 2001 From: Markus Wick Date: Fri, 31 Aug 2018 09:28:29 +0200 Subject: Report correct shader size. Seems like this was an oversee in regards to 1fd979f50a9f4c21fa8cafba7268d959e3076924 It changed GLShader::ProgramCode to a std::vector, so sizeof is wrong. --- src/video_core/renderer_opengl/gl_shader_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core') 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 -- cgit v1.2.3