| 295 | |
| 296 | |
| 297 | GLXPbuffer createPbuffer(Display *dpy, VGLFBConfig config, |
| 298 | const int *glxAttribs) |
| 299 | { |
| 300 | if(fconfig.egl) |
| 301 | { |
| 302 | try |
| 303 | { |
| 304 | FakePbuffer *pb = new FakePbuffer(dpy, config, glxAttribs); |
| 305 | GLXDrawable id = pb->getID(); |
| 306 | if(id) PBHASHEGL.add(id, pb); |
| 307 | return id; |
| 308 | } |
| 309 | CATCH_EGL(X_GLXCreatePbuffer) |
| 310 | return 0; |
| 311 | } |
| 312 | else return _glXCreatePbuffer(DPY3D, GLXFBC(config), glxAttribs); |
| 313 | } |
| 314 | |
| 315 | |
| 316 | void destroyContext(Display *dpy, GLXContext ctx) |
no test coverage detected