diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2008-09-24 16:56:45 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2008-09-24 16:56:45 -0700 |
commit | 82f150d73cc9a7d8eaf7241a51b03af05bcec159 (patch) | |
tree | 88c60d8ca229d32bb4f9e20fed3127552467486e /glx | |
parent | 8d9defe8c2a685709318c1d43379443df3d2322a (diff) |
GLX: Make sure GLX_SGI_make_current_read is enabled when possible
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxdri.c | 9 |
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]; |