diff options
Diffstat (limited to 'fb/fbcmap.c')
-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) { |