| 447 | // glXGetCurrentDisplay(). |
| 448 | |
| 449 | GLXPbuffer 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 | |
| 476 | GLXPbuffer glXCreateGLXPbufferSGIX(Display *dpy, GLXFBConfigSGIX config, |
| 477 | unsigned int width, unsigned int height, int *attrib_list) |