mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 05:50:04 +01:00
Fix the Xvfb visuals bug a better way
This commit is contained in:
parent
3fc1286a6a
commit
89b8411f0e
1 changed files with 9 additions and 1 deletions
10
fb/fbcmap.c
10
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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue