MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / ~OGLDrawable

Method ~OGLDrawable

server/VirtualDrawable.cpp:171–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169
170
171VirtualDrawable::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
194void VirtualDrawable::OGLDrawable::clear(void)

Callers

nothing calls this directly

Calls 1

destroyPbufferFunction · 0.85

Tested by

no test coverage detected