Calculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer in

driFillInModes().
This commit is contained in:
Keith Whitwell 2005-03-22 13:16:20 +00:00
parent e7c7a0f353
commit 7f8e10f96c

View file

@ -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;
}
}