Преглед изворни кода

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.
Markus Wick пре 8 година
родитељ
комит
5be8b7a362
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/video_core/renderer_opengl/gl_shader_cache.h

+ 1 - 1
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