| 170 | |
| 171 | |
| 172 | void VirtualWin::initFromWindow(VGLFBConfig config_) |
| 173 | { |
| 174 | if(edpy != EGL_NO_DISPLAY) |
| 175 | THROW("VirtualWin::initFromWindow() method not supported with EGL/X11"); |
| 176 | |
| 177 | XSync(dpy, False); |
| 178 | XWindowAttributes xwa; |
| 179 | XGetWindowAttributes(dpy, x11Draw, &xwa); |
| 180 | init(xwa.width, xwa.height, config_); |
| 181 | } |
| 182 | |
| 183 | |
| 184 | // Get the current 3D off-screen drawable |