diff options
| author | 2018-08-31 09:28:29 +0200 | |
|---|---|---|
| committer | 2018-08-31 09:56:37 +0200 | |
| commit | 5be8b7a3629df4f087b57c2488716a5ab1684956 (patch) | |
| tree | 4d37b2edb54700f92471b22ff6ddb1d8593a8f96 /src | |
| parent | Merge pull request #1195 from FearlessTobi/port-gamelist-compat (diff) | |
| download | yuzu-5be8b7a3629df4f087b57c2488716a5ab1684956.tar.gz yuzu-5be8b7a3629df4f087b57c2488716a5ab1684956.tar.xz yuzu-5be8b7a3629df4f087b57c2488716a5ab1684956.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.h | 2 |
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: | |||
| 30 | 30 | ||
| 31 | /// Gets the size of the shader in guest memory, required for cache management | 31 | /// Gets the size of the shader in guest memory, required for cache management |
| 32 | size_t GetSizeInBytes() const { | 32 | size_t GetSizeInBytes() const { |
| 33 | return sizeof(GLShader::ProgramCode); | 33 | return GLShader::MAX_PROGRAM_CODE_LENGTH * sizeof(u64); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | /// Gets the shader entries for the shader | 36 | /// Gets the shader entries for the shader |