Browse Source
Merge pull request #1207 from degasus/hotfix
Report correct shader size.
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|
|
|