mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
progs/xdemos: test glXQueryDrawable()
This commit is contained in:
parent
846a6b0695
commit
f36425b569
1 changed files with 15 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue