| 474 | } |
| 475 | |
| 476 | GLXPbuffer glXCreateGLXPbufferSGIX(Display *dpy, GLXFBConfigSGIX config, |
| 477 | unsigned int width, unsigned int height, int *attrib_list) |
| 478 | { |
| 479 | int attribs[MAX_ATTRIBS + 1], j = 0; |
| 480 | if(attrib_list) |
| 481 | { |
| 482 | for(int i = 0; attrib_list[i] != None && i < MAX_ATTRIBS - 2; i += 2) |
| 483 | { |
| 484 | attribs[j++] = attrib_list[i]; attribs[j++] = attrib_list[i + 1]; |
| 485 | } |
| 486 | } |
| 487 | attribs[j++] = GLX_PBUFFER_WIDTH; attribs[j++] = width; |
| 488 | attribs[j++] = GLX_PBUFFER_HEIGHT; attribs[j++] = height; |
| 489 | attribs[j] = None; |
| 490 | return glXCreatePbuffer(dpy, config, attribs); |
| 491 | } |
| 492 | |
| 493 | |
| 494 | // Pixmap rendering in VirtualGL is implemented by redirecting rendering into |
no test coverage detected