diff options
author | Deron <djlocal@localhost.localdomain> | 2006-11-24 15:37:39 -0800 |
---|---|---|
committer | Deron <djlocal@localhost.localdomain> | 2006-11-24 15:37:39 -0800 |
commit | 89b8411f0e5924af646e593fce011cc99e14dd4c (patch) | |
tree | 5af5a50b3b18cd4b29c97befa0352fd70db8f0b1 | |
parent | 3fc1286a6a94fa75d5698e7aa8e915fac864bc47 (diff) |
Fix the Xvfb visuals bug a better waylg3d-7.2
-rw-r--r-- | fb/fbcmap.c | 10 |
1 files changed, 9 insertions, 1 deletions
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) { |