summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-10-17 15:05:47 -0400
committerKristian Høgsberg <krh@redhat.com>2007-10-17 15:06:11 -0400
commit6c753ad51d05fcff260fcf8cccf613d47027171f (patch)
tree18e83d8d57acd82fc635239dc375816c2be7b70e /src
parenta5b4bb393f818d9906ed7862b9b8e4d2fa401603 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/glx/x11/glxext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index 2a1fcf2b84..4b78ca85c6 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;