mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-15 07:15:01 +00:00
Report correct shader size.
Seems like this was an oversee in regards to 1fd979f50a
It changed GLShader::ProgramCode to a std::vector, so sizeof is wrong.
This commit is contained in:
parent
26aaa86ece
commit
5be8b7a362
|
@ -30,7 +30,7 @@ public:
|
||||||
|
|
||||||
/// Gets the size of the shader in guest memory, required for cache management
|
/// Gets the size of the shader in guest memory, required for cache management
|
||||||
size_t GetSizeInBytes() const {
|
size_t GetSizeInBytes() const {
|
||||||
return sizeof(GLShader::ProgramCode);
|
return GLShader::MAX_PROGRAM_CODE_LENGTH * sizeof(u64);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets the shader entries for the shader
|
/// Gets the shader entries for the shader
|
||||||
|
|
Loading…
Reference in a new issue