diff options
author | alanh <alanh> | 2002-11-19 15:26:43 +0000 |
---|---|---|
committer | alanh <alanh> | 2002-11-19 15:26:43 +0000 |
commit | 4e08b125a0e790026c017ef8c6a224de2244cae4 (patch) | |
tree | ab8907307e08f24c23b6cf243b25ab12972bc974 | |
parent | 9a35811fa975e34963e3ccaff2c9c4abe29c485e (diff) |
add single buffered visual
-rw-r--r-- | xc/programs/Xserver/GL/mesa/src/X/xf86glx.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/xc/programs/Xserver/GL/mesa/src/X/xf86glx.c b/xc/programs/Xserver/GL/mesa/src/X/xf86glx.c index 31170d74f..28ebfa119 100644 --- a/xc/programs/Xserver/GL/mesa/src/X/xf86glx.c +++ b/xc/programs/Xserver/GL/mesa/src/X/xf86glx.c @@ -142,7 +142,7 @@ static XMesaVisual find_mesa_visual(int screen, VisualID vid) * of red, green, blue and alpha. If set set bufferSize to 32 we may * foul-up the visual matching code below (search for bufferSize). */ -#define NUM_FALLBACK_CONFIGS 4 +#define NUM_FALLBACK_CONFIGS 5 static __GLXvisualConfig FallbackConfigs[NUM_FALLBACK_CONFIGS] = { /* [0] = RGB, double buffered, Z */ { @@ -204,7 +204,27 @@ static __GLXvisualConfig FallbackConfigs[NUM_FALLBACK_CONFIGS] = { 0, 0, 0, 0, /* transparent rgba color (floats scaled to ints) */ 0 /* transparentIndex */ }, - /* [3] = CI, double buffered, Z */ + /* [3] = RGB+Alpha, single buffered, Z, stencil, accum */ + { + -1, /* vid */ + -1, /* class */ + True, /* rgba */ + -1, -1, -1, 8, /* rgba sizes */ + -1, -1, -1, -1, /* rgba masks */ + 16, 16, 16, 16, /* rgba accum sizes */ + False, /* doubleBuffer */ + False, /* stereo */ + -1, /* bufferSize */ + 16, /* depthSize */ + 8, /* stencilSize */ + 0, /* auxBuffers */ + 0, /* level */ + GLX_NONE_EXT, /* visualRating */ + 0, /* transparentPixel */ + 0, 0, 0, 0, /* transparent rgba color (floats scaled to ints) */ + 0 /* transparentIndex */ + }, + /* [4] = CI, double buffered, Z */ { -1, /* vid */ -1, /* class */ |