diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-22 21:38:31 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-22 21:38:31 +0100 |
commit | 52f65cdb4452032d92d4cba93c3cfa464322038b (patch) | |
tree | 67d4679195608919bd44a91042a0a4cd17543fca /servers/rendering/renderer_rd/framebuffer_cache_rd.h | |
parent | 834c7ff2c0a78acf957965e604e91617a10fb368 (diff) | |
parent | 75d56f4201469eb9eeecadb990f62f3f71dbc784 (diff) |
Merge pull request #69019 from Sauermann/fix-framebuffer-hashparameter
Fix parameters for hash_murmur3_one_32
Diffstat (limited to 'servers/rendering/renderer_rd/framebuffer_cache_rd.h')
-rw-r--r-- | servers/rendering/renderer_rd/framebuffer_cache_rd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering/renderer_rd/framebuffer_cache_rd.h b/servers/rendering/renderer_rd/framebuffer_cache_rd.h index f50d6baa30..8cf25cf44a 100644 --- a/servers/rendering/renderer_rd/framebuffer_cache_rd.h +++ b/servers/rendering/renderer_rd/framebuffer_cache_rd.h @@ -254,11 +254,11 @@ public: RID get_cache_multipass(const Vector<RID> &p_textures, const Vector<RD::FramebufferPass> &p_passes, uint32_t p_views = 1) { uint32_t h = hash_murmur3_one_32(p_views); - h = hash_murmur3_one_32(p_textures.size()); + h = hash_murmur3_one_32(p_textures.size(), h); for (int i = 0; i < p_textures.size(); i++) { h = hash_murmur3_one_64(p_textures[i].get_id(), h); } - h = hash_murmur3_one_32(p_passes.size()); + h = hash_murmur3_one_32(p_passes.size(), h); for (int i = 0; i < p_passes.size(); i++) { h = _hash_pass(p_passes[i], h); } |