mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
Calculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer in
driFillInModes().
This commit is contained in:
parent
e7c7a0f353
commit
7f8e10f96c
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue