From 89b8411f0e5924af646e593fce011cc99e14dd4c Mon Sep 17 00:00:00 2001 From: Deron Date: Fri, 24 Nov 2006 15:37:39 -0800 Subject: Fix the Xvfb visuals bug a better way --- fb/fbcmap.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fb/fbcmap.c b/fb/fbcmap.c index cdbb9e84f..927aff7e7 100644 --- a/fb/fbcmap.c +++ b/fb/fbcmap.c @@ -39,7 +39,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "resource.h" #include "fb.h" -#if !defined(XFree86Server) && !defined(LG3D) +#ifndef XFree86Server ColormapPtr FbInstalledMaps[MAXSCREENS]; int @@ -455,6 +455,14 @@ fbInitVisuals (VisualPtr *visualp, int vtype; fbVisualsPtr visuals, nextVisuals; +#ifdef LG3D + /* Workaround for Xvfb visuals bug */ + if (getenv("LG3D") != NULL) { + return miInitVisuals(visualp, depthp, nvisualp, ndepthp, rootDepthp, + defaultVisp, sizes, bitsPerRGB, -1); + } +#endif /* LG3D */ + /* none specified, we'll guess from pixmap formats */ if (!fbVisuals) { -- cgit v1.2.1