summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-07-02 15:24:54 -0700
committerEric Anholt <eric@anholt.net>2009-07-05 10:19:03 -0700
commitfd4eed69e40cf090aa16e79a8596eb1442461829 (patch)
tree76bbfedce73ac06f65abad448b31ee9dc9878ad8
parentd6b8205e699c0c62af76c4a9cbff1402337927b3 (diff)
dri2: Enable GLX_SGI_make_current_read when the DRI driver supports it.
This matches idr's 82f150d73cc9a7d8eaf7241a51b03af05bcec159 for DRI1.
-rw-r--r--glx/glxdri2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index 529b2df10..ed7fb4c4b 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -551,6 +551,15 @@ initializeExtensions(__GLXDRIscreen *screen)
LogMessage(X_INFO, "AIGLX: enabled GLX_MESA_copy_sub_buffer\n");
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_SWAP_CONTROL
if (strcmp(extensions[i]->name, __DRI_SWAP_CONTROL) == 0) {
screen->swapControl =