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

Function glXCreatePbuffer

server/faker-glx.cpp:449–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447// glXGetCurrentDisplay().
448
449GLXPbuffer glXCreatePbuffer(Display *dpy, GLXFBConfig config_,
450 const int *attrib_list)
451{
452 GLXPbuffer pb = 0;
453 VGLFBConfig config = (VGLFBConfig)config_;
454
455 TRY();
456
457 if(IS_EXCLUDED(dpy))
458 return _glXCreatePbuffer(dpy, config_, attrib_list);
459
460 /////////////////////////////////////////////////////////////////////////////
461 OPENTRACE(glXCreatePbuffer); PRARGD(dpy); PRARGC(config);
462 PRARGAL13(attrib_list); STARTTRACE();
463 /////////////////////////////////////////////////////////////////////////////
464
465 pb = backend::createPbuffer(dpy, config, attrib_list);
466 if(dpy && pb) GLXDHASH.add(pb, dpy);
467
468 /////////////////////////////////////////////////////////////////////////////
469 STOPTRACE(); PRARGX(pb); CLOSETRACE();
470 /////////////////////////////////////////////////////////////////////////////
471
472 CATCH();
473 return pb;
474}
475
476GLXPbuffer glXCreateGLXPbufferSGIX(Display *dpy, GLXFBConfigSGIX config,
477 unsigned int width, unsigned int height, int *attrib_list)

Callers 5

offScreenTestFunction · 0.85
glXCreateGLXPbufferSGIXFunction · 0.85
CreatePbufferFunction · 0.85
configureFunction · 0.85
drawableInitFunction · 0.85

Calls 2

createPbufferFunction · 0.85
addMethod · 0.45

Tested by 2

configureFunction · 0.68
drawableInitFunction · 0.68