From: Kristian Høgsberg Date: Wed, 17 Oct 2007 19:05:47 +0000 (-0400) Subject: Pull workaround for unset GLX_DRAWABLE_TYPE back in. X-Git-Tag: 062012170305~19323^2~7^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c753ad51d05fcff260fcf8cccf613d47027171f;p=profile%2Fivi%2Fmesa.git Pull workaround for unset GLX_DRAWABLE_TYPE back in. The old version just set GLX_DRAWABLE_TYPE to GLX_WINDOW_BIT for configs received through glXGetVisualConfigs and to GLX_WINDOW_BIT | GLX_PIXMAP_BIT for configs received as FBConfigs. The X server needs to send this info, but keep the workaround for now. Fixes #12835. --- diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 2a1fcf2..4b78ca8 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -1033,6 +1033,8 @@ createConfigsFromProperties(Display *dpy, int nvisuals, int nprops, m = modes; for (i = 0; i < nvisuals; i++) { _XRead(dpy, (char *)props, prop_size); + /* Older X servers don't send this so we default it here. */ + m->drawableType = GLX_WINDOW_BIT; __glXInitializeVisualConfigFromTags(m, nprops, props, tagged_only, GL_TRUE); m->screen = screen;