Merge pull request #69019 from Sauermann/fix-framebuffer-hashparameter

Fix parameters for hash_murmur3_one_32
This commit is contained in:
Rémi Verschelde 2022-11-22 21:38:31 +01:00
commit 52f65cdb44
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);
}