| 237 | |
| 238 | |
| 239 | void 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 | |
| 257 | void VirtualWin::wmDeleted(void) |
no test coverage detected