From 7f8e10f96c1970d2c81ec8d4f3a45a3b006b3be1 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 22 Mar 2005 13:16:20 +0000 Subject: Calculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer in driFillInModes(). --- src/mesa/drivers/dri/common/utils.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/drivers/dri') diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c index 85527f92347..1b82383dab5 100644 --- a/src/mesa/drivers/dri/common/utils.c +++ b/src/mesa/drivers/dri/common/utils.c @@ -593,6 +593,13 @@ driFillInModes( __GLcontextModes ** ptr_to_modes, modes->swapMethod = db_modes[i]; } + modes->haveAccumBuffer = ((modes->accumRedBits + + modes->accumGreenBits + + modes->accumBlueBits + + modes->accumAlphaBits) > 0); + modes->haveDepthBuffer = (modes->depthBits > 0); + modes->haveStencilBuffer = (modes->stencilBits > 0); + modes = modes->next; } } -- cgit v1.2.3