summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2005-03-22 13:16:20 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2005-03-22 13:16:20 +0000
commit7f8e10f96c1970d2c81ec8d4f3a45a3b006b3be1 (patch)
tree94bf628feffc629a1e43926220cad1c78ad06a37 /src/mesa/drivers
parente7c7a0f3536ad23fa0a5b8bba973da8fef9d72ce (diff)
Calculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer in
driFillInModes().
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/common/utils.c7
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 85527f9234..1b82383dab 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;
}
}