diff options
author | George Fufutos <fufutos610@hotmail.com> | 2006-04-30 03:09:34 +0300 |
---|---|---|
committer | Luc Verhaegen <libv@skynet.be> | 2006-04-30 11:42:51 +0200 |
commit | 86bfacff04d3bd3e0acaec6aad562a1648e0264a (patch) | |
tree | 833c58698aacd55f0c034b7a9ba987e61579c8cd | |
parent | b36982e169442ed1e9a861ad8c9cb9334790580c (diff) |
[PATCH] Prefer double-buffered visuals for GLX.
This is desirable in a number of situations, in particular when running
a GLX compositing manager with AIGLX.
Fix copied from radeon driver (Michel Daenzer, Kristian Hoegsberg).
-rw-r--r-- | src/atidri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atidri.c b/src/atidri.c index 90feb12..2c15483 100644 --- a/src/atidri.c +++ b/src/atidri.c @@ -120,7 +120,7 @@ static Bool ATIInitVisualConfigs( ScreenPtr pScreen ) } i = 0; - for (db = 0; db <= 1; db++) { + for (db = 1; db >= 0; db--) { for ( accum = 0 ; accum <= ATI_USE_ACCUM ; accum++ ) { for ( stencil = 0 ; stencil <= ATI_USE_STENCIL ; stencil++ ) { pATIConfigPtrs[i] = &pATIConfigs[i]; @@ -201,7 +201,7 @@ static Bool ATIInitVisualConfigs( ScreenPtr pScreen ) } i = 0; - for (db = 0; db <= 1; db++) { + for (db = 1; db >= 0; db--) { for ( accum = 0 ; accum <= ATI_USE_ACCUM ; accum++ ) { for ( stencil = 0 ; stencil <= ATI_USE_STENCIL ; stencil++ ) { pATIConfigPtrs[i] = &pATIConfigs[i]; |