| 169 | |
| 170 | |
| 171 | VirtualDrawable::OGLDrawable::~OGLDrawable(void) |
| 172 | { |
| 173 | if(isPixmap) |
| 174 | { |
| 175 | if(glxDraw) |
| 176 | { |
| 177 | _glXDestroyPixmap(DPY3D, glxDraw); |
| 178 | glxDraw = 0; |
| 179 | } |
| 180 | if(pm) { XFreePixmap(DPY3D, pm); pm = 0; } |
| 181 | if(win) { _XDestroyWindow(DPY3D, win); win = 0; } |
| 182 | } |
| 183 | else |
| 184 | { |
| 185 | if(edpy != EGL_NO_DISPLAY) |
| 186 | _eglDestroySurface(edpy, (EGLSurface)glxDraw); |
| 187 | else |
| 188 | backend::destroyPbuffer(dpy, glxDraw); |
| 189 | glxDraw = 0; |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | |
| 194 | void VirtualDrawable::OGLDrawable::clear(void) |
nothing calls this directly
no test coverage detected