mtx_t st_mutex;
};
-static void st_manager_destroy(struct st_manager *);
/**
* Map an attachment to a buffer index.
_mesa_glthread_finish(st->ctx);
}
+
+static void
+st_manager_destroy(struct st_manager *smapi)
+{
+ struct st_manager_private *smPriv = smapi->st_manager_private;
+
+ if (smPriv && smPriv->stfbi_ht) {
+ _mesa_hash_table_destroy(smPriv->stfbi_ht, NULL);
+ mtx_destroy(&smPriv->st_mutex);
+ free(smPriv);
+ smapi->st_manager_private = NULL;
+ }
+}
+
+
static struct st_context_iface *
st_api_create_context(struct st_api *stapi, struct st_manager *smapi,
const struct st_context_attribs *attribs,
return TRUE;
}
-static void
-st_manager_destroy(struct st_manager *smapi)
-{
- struct st_manager_private *smPriv = smapi->st_manager_private;
-
- if (smPriv && smPriv->stfbi_ht) {
- _mesa_hash_table_destroy(smPriv->stfbi_ht, NULL);
- mtx_destroy(&smPriv->st_mutex);
- free(smPriv);
- smapi->st_manager_private = NULL;
- }
-}
static unsigned
get_version(struct pipe_screen *screen,