summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glxext.c
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2007-05-17 14:39:06 -0400
committerKristian Høgsberg <[email protected]>2007-10-11 11:22:55 -0400
commitf968f67e6214416f04b8875ce59a94a02f464c81 (patch)
treec7e3fd482e54a55b1e6b6545e79ea8d0d385613b /src/glx/x11/glxext.c
parent106a6f29bbdc71982afd629bdf89369cefd1459e (diff)
Add a DRI_ReadDrawable marker extension to signal read drawable capability.
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r--src/glx/x11/glxext.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 643db487c58..3db163af1ee 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -1068,6 +1068,13 @@ static void queryExtensions(__GLXscreenConfigs *psc)
* not defined in dri_interface.h. Will enable
* GLX_OML_sync_control if implemented. */
#endif
+
+#ifdef __DRI_READ_DRAWABLE
+ if (strcmp(extensions[i]->name, __DRI_READ_DRAWABLE) == 0) {
+ __glXScrEnableExtension(&psc->driScreen,
+ "GLX_SGI_make_current_read");
+ }
+#endif
/* Ignore unknown extensions */
}
}