Module: Demos Branch: master Commit: 2b8dc3f95d9cb9d59183172e7bf0bc16523aa4c3 URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=2b8dc3f95d9cb9d59183172e7bf0bc16523aa4c3
Author: Brian Paul <[email protected]> Date: Tue Jul 15 08:39:20 2014 -0600 wglinfo: print swap method in print_visual_attribs_verbose() Reviewed-by: José Fonseca <[email protected]> --- src/wgl/wglinfo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wgl/wglinfo.c b/src/wgl/wglinfo.c index 16008d2..22d8d64 100644 --- a/src/wgl/wglinfo.c +++ b/src/wgl/wglinfo.c @@ -334,6 +334,13 @@ print_visual_attribs_verbose(int iPixelFormat, const struct format_info *info) info->pfd.cAccumBlueBits, info->pfd.cAccumAlphaBits); printf(" multiSample=%d multiSampleBuffers=%d\n", info->numSamples, info->sampleBuffers); + if (info->pfd.dwFlags & PFD_SWAP_EXCHANGE) + printf(" swapMethod = Exchange\n"); + else if (info->pfd.dwFlags & PFD_SWAP_COPY) + printf(" swapMethod = Copy\n"); + else + printf(" swapMethod = Undefined\n"); + } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
