diff options
Diffstat (limited to 'source/blender/draw/engines/eevee_next')
-rw-r--r-- | source/blender/draw/engines/eevee_next/eevee_material.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee_next/eevee_material.hh b/source/blender/draw/engines/eevee_next/eevee_material.hh index ad0c293926b..f4b1f60b456 100644 --- a/source/blender/draw/engines/eevee_next/eevee_material.hh +++ b/source/blender/draw/engines/eevee_next/eevee_material.hh @@ -120,7 +120,7 @@ struct MaterialKey { uint64_t hash() const { BLI_assert(options < sizeof(*mat)); - return (uint64_t)mat + options; + return uint64_t(mat) + options; } bool operator<(const MaterialKey &k) const @@ -154,7 +154,7 @@ struct ShaderKey { uint64_t hash() const { - return (uint64_t)shader + options; + return uint64_t(shader) + options; } bool operator<(const ShaderKey &k) const |