From 3e827cb948a3a6992a3a67c1fe6ff30b5472c2ba Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Fri, 12 Sep 2014 13:37:49 -0700 Subject: [PATCH] No longer pass GLX_ALPHA_SIZE to the framebuffer config attributes This seems to cause failures on the travis-ci X11 configuration. Roll this out until we can investigate properly. --- src/platform/linux/surface.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/platform/linux/surface.rs b/src/platform/linux/surface.rs index b78ae59..62765dc 100644 --- a/src/platform/linux/surface.rs +++ b/src/platform/linux/surface.rs @@ -76,12 +76,16 @@ impl NativeCompositingGraphicsContext { fn compositor_visual_info(display: *mut Display) -> (*mut XVisualInfo, Option) { unsafe { let glx_display = mem::transmute(display); + + // FIXME(mrobison): We would like to specify GLX_ALPHA_SIZE here, and it fixes bugs on certain + // drivers, but it seems to break on the dummy X11 configuration used on travis. Until + // we can work out that issue, we need to omit GLX_ALPHA_SIZE. + // See: https://github.com/servo/servo/issues/3245 let mut fbconfig_attributes = [ GLX_DOUBLEBUFFER, 0, GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_WINDOW_BIT, GLX_BIND_TO_TEXTURE_RGBA_EXT, 1, GLX_RENDER_TYPE, GLX_RGBA_BIT, - GLX_ALPHA_SIZE, 8, 0 ];