summaryrefslogtreecommitdiffstats
path: root/progs/xdemos
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-10-07 09:11:23 -0600
committerBrian Paul <[email protected]>2009-10-07 09:41:38 -0600
commitf36425b569953de862ecd8f42ecd54831ad9c4a6 (patch)
treee5efb9ee71d6ed03f53fa1cefb082d5a7c498b7c /progs/xdemos
parent846a6b069589d5f7b7a8a65f99a0f43cb8fed20b (diff)
progs/xdemos: test glXQueryDrawable()
Diffstat (limited to 'progs/xdemos')
-rw-r--r--progs/xdemos/pbdemo.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/progs/xdemos/pbdemo.c b/progs/xdemos/pbdemo.c
index 425b3bbe9f4..2573209336c 100644
--- a/progs/xdemos/pbdemo.c
+++ b/progs/xdemos/pbdemo.c
@@ -210,6 +210,21 @@ Setup(int width, int height)
return 0;
}
+ /* Test drawable queries */
+ {
+ unsigned int v;
+ glXQueryDrawable( gDpy, gPBuffer, GLX_WIDTH, &v);
+ printf("GLX_WIDTH = %u\n", v);
+ glXQueryDrawable( gDpy, gPBuffer, GLX_HEIGHT, &v);
+ printf("GLX_HEIGHT = %u\n", v);
+ glXQueryDrawable( gDpy, gPBuffer, GLX_PRESERVED_CONTENTS, &v);
+ printf("GLX_PRESERVED_CONTENTS = %u\n", v);
+ glXQueryDrawable( gDpy, gPBuffer, GLX_LARGEST_PBUFFER, &v);
+ printf("GLX_LARGEST_PBUFFER = %u\n", v);
+ glXQueryDrawable( gDpy, gPBuffer, GLX_FBCONFIG_ID, &v);
+ printf("GLX_FBCONFIG_ID = %u\n", v);
+ }
+
/* Get corresponding XVisualInfo */
visInfo = GetVisualFromFBConfig(gDpy, gScreen, gFBconfig);
if (!visInfo) {