diff options
author | brianp <brianp> | 2000-12-11 17:23:06 +0000 |
---|---|---|
committer | brianp <brianp> | 2000-12-11 17:23:06 +0000 |
commit | 3db0d7df4a7de901367aad37544e8a95712e5465 (patch) | |
tree | de6388e377ef437632d124760200796b27ec0926 /xc | |
parent | d22f573b9920960c81bc6212cfa5c77fe32aff72 (diff) |
eliminate 32-bit depth buffer visuals because they don't work with s/w rendering
Diffstat (limited to 'xc')
-rw-r--r-- | xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c b/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c index 5b1d6ddc6..96a653d9b 100644 --- a/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c +++ b/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c @@ -254,9 +254,8 @@ MGAInitVisualConfigs(ScreenPtr pScreen) pMGAConfigPtrs[i] = &pMGAConfigs[i]; i = 0; - depth = 1; for (accum = 0; accum <= 1; accum++) { - for (stencil = 0; stencil <= 1; stencil++) { + for (depth = 0; depth <= 1; depth++) { /* and stencil */ for (db=1; db>=0; db--) { pConfigs[i].vid = -1; pConfigs[i].class = -1; @@ -286,17 +285,14 @@ MGAInitVisualConfigs(ScreenPtr pScreen) pConfigs[i].doubleBuffer = FALSE; pConfigs[i].stereo = FALSE; pConfigs[i].bufferSize = 32; - if (depth) - if (stencil) + if (depth) { pConfigs[i].depthSize = 24; - else - pConfigs[i].depthSize = 32; - else - pConfigs[i].depthSize = 0; - if (stencil) - pConfigs[i].stencilSize = 8; - else - pConfigs[i].stencilSize = 0; + pConfigs[i].stencilSize = 8; + } + else { + pConfigs[i].depthSize = 0; + pConfigs[i].stencilSize = 0; + } pConfigs[i].auxBuffers = 0; pConfigs[i].level = 0; if (accum) |