diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2005-03-22 12:21:22 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2005-03-22 12:21:22 +0000 |
commit | f6c7db29ab7ab75764b10b7f3e941c18ebd184e2 (patch) | |
tree | faa5874bb9e808540cc93db778f15200fbfee881 | |
parent | bc81d7451099270ea4847d9e92f31e64cfbf5eba (diff) |
Calculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer inmesa_20050114_branch
driFillInModes().
-rw-r--r-- | src/mesa/drivers/dri/common/utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c index fcdd9f8377..d03bc80762 100644 --- a/src/mesa/drivers/dri/common/utils.c +++ b/src/mesa/drivers/dri/common/utils.c @@ -570,6 +570,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; } } |