Commit f6c7db29 authored by Keith Whitwell's avatar Keith Whitwell
Browse files

Calculate haveAccumBuffer, haveDepthBuffer and haveStencilBuffer in

driFillInModes().
parent bc81d745
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment