vkd3d: Actually compare against hashmap entry and not against itself.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2020-12-05 14:45:32 +01:00 committed by Philip Rebohle
parent e6961afca6
commit 6b363e53d2
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ static inline struct hash_map_entry *hash_map_insert(struct hash_map *hash_map,
struct hash_map_entry *current = hash_map_get_entry(hash_map, entry_idx);
if (!(current->flags & HASH_MAP_ENTRY_OCCUPIED) ||
(current->hash_value == hash_value && hash_map->compare_func(key, entry)))
(current->hash_value == hash_value && hash_map->compare_func(key, current)))
target = current;
else
entry_idx = hash_map_next_entry_idx(hash_map, entry_idx);