mesa: Upload boolean uniforms using UniformBooleanTrue.
[mesa.git] / src / mesa / main / set.c
index 2519b96947a64bac3bb59dd0e0cdfd610fb8c475..52c1dabd82b4b52ecd646fc5b6ac1980e63a8327 100644 (file)
@@ -36,7 +36,7 @@
 
 #include "macros.h"
 #include "set.h"
-#include "ralloc.h"
+#include "util/ralloc.h"
 
 /*
  * From Knuth -- a good choice for hash/rehash values is p, p-2 where
@@ -103,8 +103,8 @@ entry_is_present(struct set_entry *entry)
 
 struct set *
 _mesa_set_create(void *mem_ctx,
-                 bool key_equals_function(const void *a,
-                                          const void *b))
+                 bool (*key_equals_function)(const void *a,
+                                             const void *b))
 {
    struct set *ht;
 
@@ -112,7 +112,6 @@ _mesa_set_create(void *mem_ctx,
    if (ht == NULL)
       return NULL;
 
-   ht->mem_ctx = mem_ctx;
    ht->size_index = 0;
    ht->size = hash_sizes[ht->size_index].size;
    ht->rehash = hash_sizes[ht->size_index].rehash;