From nobody Mon Sep 17 00:00:00 2001 From: Michel Daenzer Date: Sat, 29 Apr 2006 20:12:38 +0000 Subject: [PATCH] Prefer double-buffered visuals. As a consequence, the root window's visual is double-buffered by default, which is desirable in a number of situations, in particular when running a GLX compositing manager with AIGLX. --- ChangeLog | 8 ++++++++ src/radeon_dri.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) 6142cb079d4a5844e4863c800baf4ae19c636af5 diff --git a/ChangeLog b/ChangeLog index dbeeb8f..71141db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-04-29 Michel Dänzer + + * src/radeon_dri.c: (RADEONInitVisualConfigs): + Prefer double-buffered visuals. As a consequence, the root window's + visual is double-buffered by default, which is desirable in a number of + situations, in particular when running a GLX compositing manager with + AIGLX. + 2006-04-27 Eric Anholt reviewed by: Michel Dänzer diff --git a/src/radeon_dri.c b/src/radeon_dri.c index 4939252..c059100 100644 --- a/src/radeon_dri.c +++ b/src/radeon_dri.c @@ -129,7 +129,7 @@ #define RADEON_USE_STENCIL 1 } i = 0; - for (db = 0; db <= use_db; db++) { + for (db = use_db; db >= 0; db--) { for (accum = 0; accum <= RADEON_USE_ACCUM; accum++) { for (stencil = 0; stencil <= RADEON_USE_STENCIL; stencil++) { pRADEONConfigPtrs[i] = &pRADEONConfigs[i]; @@ -212,7 +212,7 @@ #define RADEON_USE_STENCIL 1 } i = 0; - for (db = 0; db <= use_db; db++) { + for (db = use_db; db >= 0; db--) { for (accum = 0; accum <= RADEON_USE_ACCUM; accum++) { for (stencil = 0; stencil <= RADEON_USE_STENCIL; stencil++) { pRADEONConfigPtrs[i] = &pRADEONConfigs[i]; -- 1.3.3