summaryrefslogtreecommitdiff
path: root/glx/glxdri2.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-02-16 12:08:28 -0800
committerIan Romanick <ian.d.romanick@intel.com>2009-02-16 12:08:56 -0800
commit51ae4d6bbfd95cac8a9cdefcd6f22fbe21a6cb9d (patch)
treeb3745bb229c67586740059a9e54e33b03a0d903e /glx/glxdri2.c
parentcaa5310e163b040689383f6d25ccab5ef1b2e215 (diff)
glx: Add comments around some extension string weirdness
Diffstat (limited to 'glx/glxdri2.c')
-rw-r--r--glx/glxdri2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index 66e08895c..b12293acb 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -583,6 +583,10 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
__glXScreenInit(&screen->base, pScreen);
+ /* The first call simply determines the length of the extension string.
+ * This allows us to allocate some memory to hold the extension string,
+ * but it requires that we call __glXGetExtensionString a second time.
+ */
buffer_size = __glXGetExtensionString(screen->glx_enable_bits, NULL);
if (buffer_size > 0) {
if (screen->base.GLXextensions != NULL) {