Fix the Xvfb visuals bug a better way

This commit is contained in:
Deron 2006-11-24 15:37:39 -08:00
parent 3fc1286a6a
commit 89b8411f0e

View file

@ -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)
{