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 @@ -213,6 +213,14 @@ public: hash_table_dtor(this->ht); } + /** + * Remove all mappings from this map. + */ + void clear() + { + hash_table_clear(this->ht); + } + /** * Get the value associated with a particular key *