summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2014-07-15 08:39:20 -0600
committerBrian Paul <brianp@vmware.com>2014-07-16 07:30:30 -0600
commit2b8dc3f95d9cb9d59183172e7bf0bc16523aa4c3 (patch)
tree033fa6a602b5c63bdd21a16e1909e8d47dbe8b87
parentcf7ecd9fc576688ae105c780e07b5bbf32d9e3bd (diff)
downloadmesa-demos-2b8dc3f95d9cb9d59183172e7bf0bc16523aa4c3.zip
mesa-demos-2b8dc3f95d9cb9d59183172e7bf0bc16523aa4c3.tar.xz
wglinfo: print swap method in print_visual_attribs_verbose()
Reviewed-by: José Fonseca <jfonseca@vmware.com>
-rw-r--r--src/wgl/wglinfo.c7
1 files changed, 7 insertions, 0 deletions
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");
+
}