From 234286c0f8b7d30ed49223c648d4c73c1a517ab3 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Thu, 22 Apr 2010 12:47:41 -0700 Subject: DRI2: add config query extension Add a new DRI2 configuration query extension. Allows for DRI2 client code to query for common DRI2 configuration options. --- src/glx/dri_common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/glx/dri_common.c') diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index e4034161bb..dbc6082313 100644 --- a/src/glx/dri_common.c +++ b/src/glx/dri_common.c @@ -403,6 +403,11 @@ dri2BindExtensions(__GLXscreenConfigs *psc) /* internal driver extension, no GL extension exposed */ } #endif + +#ifdef __DRI2_CONFIG_QUERY + if ((strcmp(extensions[i]->name, __DRI2_CONFIG_QUERY) == 0)) + psc->config = (__DRI2configQueryExtension *) extensions[i]; +#endif } } -- cgit v1.2.3