MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / swapBuffers

Method swapBuffers

server/VirtualWin.cpp:239–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237
238
239void VirtualWin::swapBuffers(void)
240{
241 if(edpy != EGL_NO_DISPLAY)
242 THROW("VirtualWin::swapBuffers() method not supported with EGL/X11");
243
244 CriticalSection::SafeLock l(mutex);
245 if(deletedByWM) THROW("Window has been deleted by window manager");
246 if(oglDraw)
247 {
248 if(fconfig.amdgpuHack)
249 copyPixels(0, 0, oglDraw->getWidth(), oglDraw->getHeight(), 0, 0,
250 getGLXDrawable(), GL_BACK, GL_FRONT);
251 else
252 oglDraw->swap();
253 }
254}
255
256
257void VirtualWin::wmDeleted(void)

Callers 1

glXSwapBuffersFunction · 0.80

Calls 3

getWidthMethod · 0.45
getHeightMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected