[Mesa-dev] [PATCH 4/5] wglinfo: print swap method in print_visual_attribs_verbose()

Brian Paul brianp at vmware.com
Tue Jul 15 07:39:47 PDT 2014


---
 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");
+
 }
 
 
-- 
1.7.10.4



More information about the mesa-dev mailing list