summarylogtreecommitdiffstats
path: root/fix-pbuffer.patch
blob: a6be2d1d102d0148980089015bd54f6a620e9048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index 0be684dda95..a700956f292 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -390,20 +390,7 @@ driFetchDrawable(struct glx_context *gc, GLXDrawable glxDrawable)
     *    case which use the same XID for both X pixmap and GLX drawable.
     */
 
-   /* Infer the GLX drawable type. */
-   if (__glXGetDrawableAttribute(dpy, glxDrawable, GLX_DRAWABLE_TYPE, &type)) {
-      if (type != GLX_PBUFFER_BIT) {
-         ErrorMessageF("GLX drawable type is not supported\n");
-         return NULL;
-      }
-   } else {
-      /* Xserver may not implement GLX_DRAWABLE_TYPE query yet, or glxDrawable
-       * is a X window. Assume it's a GLXPbuffer in former case, because we don't
-       * know GLXPixmap and GLXWindow's X drawable ID anyway.
-       */
-      type = GLX_PBUFFER_BIT | GLX_WINDOW_BIT;
-   }
-
+   type = GLX_PBUFFER_BIT | GLX_WINDOW_BIT;
    pdraw = psc->driScreen->createDrawable(psc, glxDrawable, glxDrawable,
                                           type, config);