diff options
author | bunnei <bunneidev@gmail.com> | 2020-06-20 05:31:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-20 05:31:04 +0200 |
commit | 7d1dca4c981d04bcb18cd5ecc6a4fe3f71d85560 (patch) | |
tree | c806783957549f1127c7d8bfda28abefa5b3ab8d /src/video_core/shader | |
parent | Merge pull request #4113 from ogniK5377/boxcat-disable (diff) | |
parent | bootmanager: Remove references to OpenGL for macOS (diff) | |
download | yuzu-7d1dca4c981d04bcb18cd5ecc6a4fe3f71d85560.tar yuzu-7d1dca4c981d04bcb18cd5ecc6a4fe3f71d85560.tar.gz yuzu-7d1dca4c981d04bcb18cd5ecc6a4fe3f71d85560.tar.bz2 yuzu-7d1dca4c981d04bcb18cd5ecc6a4fe3f71d85560.tar.lz yuzu-7d1dca4c981d04bcb18cd5ecc6a4fe3f71d85560.tar.xz yuzu-7d1dca4c981d04bcb18cd5ecc6a4fe3f71d85560.tar.zst yuzu-7d1dca4c981d04bcb18cd5ecc6a4fe3f71d85560.zip |
Diffstat (limited to 'src/video_core/shader')
-rw-r--r-- | src/video_core/shader/memory_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/memory_util.cpp b/src/video_core/shader/memory_util.cpp index 074f21691..5071c83ca 100644 --- a/src/video_core/shader/memory_util.cpp +++ b/src/video_core/shader/memory_util.cpp @@ -66,12 +66,12 @@ ProgramCode GetShaderCode(Tegra::MemoryManager& memory_manager, GPUVAddr gpu_add u64 GetUniqueIdentifier(Tegra::Engines::ShaderType shader_type, bool is_a, const ProgramCode& code, const ProgramCode& code_b) { - u64 unique_identifier = boost::hash_value(code); + size_t unique_identifier = boost::hash_value(code); if (is_a) { // VertexA programs include two programs boost::hash_combine(unique_identifier, boost::hash_value(code_b)); } - return unique_identifier; + return static_cast<u64>(unique_identifier); } } // namespace VideoCommon::Shader |