]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/finalize.cpp
Update usage of hash functions
[libs/gl.git] / source / glsl / finalize.cpp
index 60312be8adf8fc09cdb6a55ed76de342b9f3da46..52cf95804245767ec1e487619313e87d66ee17dc 100644 (file)
@@ -156,7 +156,7 @@ void LocationAllocator::bind_uniform(RefPtr<Layout> &layout, const string &name,
        {
                set<unsigned> &used = used_bindings[desc_set];
 
-               unsigned bind_point = fold32(hash64(name))%range;
+               unsigned bind_point = hash_fold<32>(hash<64>(name))%range;
                while(used.count(bind_point))
                        bind_point = (bind_point+1)%range;