summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-10-11 15:25:00 -0700
committerIan Romanick <[email protected]>2011-11-07 13:33:15 -0800
commit017346f4038671bd6725b857f6daeba821a8306b (patch)
treea28419bdd0ad882e939852f8eaf0c4afd82e77dd /src/mesa/program
parent295e07ef51eded34ed6374823f15c0b5d13ad2d4 (diff)
mesa: Add string_to_uint_map::clear method to clear the map
Signed-off-by: Ian Romanick <[email protected]> Tested-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/hash_table.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/program/hash_table.h b/src/mesa/program/hash_table.h
index 941d28a4ce9..47c37ae40ec 100644
--- a/src/mesa/program/hash_table.h
+++ b/src/mesa/program/hash_table.h
@@ -214,6 +214,14 @@ public:
}
/**
+ * Remove all mappings from this map.
+ */
+ void clear()
+ {
+ hash_table_clear(this->ht);
+ }
+
+ /**
* Get the value associated with a particular key
*
* \return