MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / checkDrawable

Function checkDrawable

server/fakerut.cpp:1855–1864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1853}
1854
1855void checkDrawable(Display *dpy, GLXDrawable draw, int width, int height,
1856 int preservedContents, int largestPbuffer, int fbcid)
1857{
1858 if(!dpy || !draw) THROW("Invalid argument to checkdrawable()");
1859 COMPARE_DRAW_ATTRIB(dpy, draw, width, GLX_WIDTH);
1860 COMPARE_DRAW_ATTRIB(dpy, draw, height, GLX_HEIGHT);
1861 COMPARE_DRAW_ATTRIB(dpy, draw, preservedContents, GLX_PRESERVED_CONTENTS);
1862 COMPARE_DRAW_ATTRIB(dpy, draw, largestPbuffer, GLX_LARGEST_PBUFFER);
1863 COMPARE_DRAW_ATTRIB(dpy, draw, fbcid, GLX_FBCONFIG_ID);
1864}
1865
1866// Test off-screen rendering
1867int offScreenTest(bool dbPixmap, bool doUseXFont, bool doSelectEvent)

Callers 1

offScreenTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected