summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2008-09-24 16:56:45 -0700
committerIan Romanick <ian.d.romanick@intel.com>2008-09-24 16:56:45 -0700
commit82f150d73cc9a7d8eaf7241a51b03af05bcec159 (patch)
tree88c60d8ca229d32bb4f9e20fed3127552467486e
parent8d9defe8c2a685709318c1d43379443df3d2322a (diff)
GLX: Make sure GLX_SGI_make_current_read is enabled when possible
-rw-r--r--glx/glxdri.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/glx/glxdri.c b/glx/glxdri.c
index aa763deed..c33b5bd9b 100644
--- a/glx/glxdri.c
+++ b/glx/glxdri.c
@@ -871,6 +871,15 @@ initializeExtensions(__GLXDRIscreen *screen)
extensions = screen->core->getExtensions(screen->driScreen);
for (i = 0; extensions[i]; i++) {
+#ifdef __DRI_READ_DRAWABLE
+ if (strcmp(extensions[i]->name, __DRI_READ_DRAWABLE) == 0) {
+ __glXEnableExtension(screen->glx_enable_bits,
+ "GLX_SGI_make_current_read");
+
+ LogMessage(X_INFO, "AIGLX: enabled GLX_SGI_make_current_read\n");
+ }
+#endif
+
#ifdef __DRI_COPY_SUB_BUFFER
if (strcmp(extensions[i]->name, __DRI_COPY_SUB_BUFFER) == 0) {
screen->copySubBuffer = (__DRIcopySubBufferExtension *) extensions[i];