summaryrefslogtreecommitdiffstats
path: root/src/glx/dri_common.c
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-07-19 22:12:22 -0400
committerKristian Høgsberg <[email protected]>2010-07-19 22:45:51 -0400
commitbab13969d8bf3ff9259524c3f4ab96d81485ccef (patch)
tree28dc1e3995a3c141078776dbb7ca8fa879342378 /src/glx/dri_common.c
parente3e8196c025bd344a59b4671e473c395a6ea426b (diff)
glx: Move driver_configs to DRI screen privates
Diffstat (limited to 'src/glx/dri_common.c')
-rw-r--r--src/glx/dri_common.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index b1d9f320210..796654a65d0 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -336,6 +336,16 @@ driConvertConfigs(const __DRIcoreExtension * core,
return head.next;
}
+_X_HIDDEN void
+driDestroyConfigs(const __DRIconfig **configs)
+{
+ int i;
+
+ for (i = 0; configs[i]; i++)
+ free((__DRIconfig *) configs[i]);
+ free(configs);
+}
+
/* Bind extensions common to DRI1 and DRI2 */
_X_HIDDEN void
driBindCommonExtensions(__GLXscreenConfigs *psc,