]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/generate.cpp
Update usage of hash functions
[libs/gl.git] / source / glsl / generate.cpp
index c82d1c6c58e4a59ef025fa3cf3f13c80b580342c..85c3009bc312e6426b570d4f85451aad7a146752 100644 (file)
@@ -22,7 +22,7 @@ void ConstantIdAssigner::apply(Module &module, const Features &features)
                        id = j->second;
                else
                {
-                       id = hash32(v->name)%features.constant_id_range;
+                       id = hash<32>(v->name)%features.constant_id_range;
                        while(used_ids.count(id))
                                id = (id+1)%features.constant_id_range;
                }