summaryrefslogtreecommitdiff
path: root/cogl/cogl-context.c
diff options
context:
space:
mode:
Diffstat (limited to 'cogl/cogl-context.c')
-rw-r--r--cogl/cogl-context.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c
index b8296ece..58fa44d6 100644
--- a/cogl/cogl-context.c
+++ b/cogl/cogl-context.c
@@ -221,6 +221,9 @@ cogl_context_new (CoglDisplay *display,
g_assert_not_reached ();
}
+ context->uniform_names = NULL;
+ context->n_uniform_names = 0;
+
/* Initialise the driver specific state */
_cogl_init_feature_overrides (context);
@@ -478,8 +481,12 @@ _cogl_context_free (CoglContext *context)
cogl_pipeline_cache_free (context->pipeline_cache);
+
_cogl_destroy_texture_units ();
+ g_slist_foreach (context->uniform_names, (GFunc) g_free, NULL);
+ g_slist_free (context->uniform_names);
+
g_byte_array_free (context->buffer_map_fallback_array, TRUE);
cogl_object_unref (context->display);