| 220 | // 3D off-screen drawable that backs it. |
| 221 | |
| 222 | VirtualDrawable::VirtualDrawable(Display *dpy_, Drawable x11Draw_) |
| 223 | { |
| 224 | if(!dpy_ || !x11Draw_) THROW("Invalid argument"); |
| 225 | dpy = dpy_; |
| 226 | x11Draw = x11Draw_; |
| 227 | edpy = EGL_NO_DISPLAY; |
| 228 | oglDraw = NULL; |
| 229 | profReadback.setName("Readback "); |
| 230 | autotestFrameCount = 0; |
| 231 | config = 0; |
| 232 | ctx = 0; |
| 233 | direct = -1; |
| 234 | pbo = 0; |
| 235 | numSync = numFrames = 0; |
| 236 | lastFormat = -1; |
| 237 | usePBO = (fconfig.readback == RRREAD_PBO); |
| 238 | alreadyPrinted = alreadyWarned = alreadyWarnedRenderMode = false; |
| 239 | ext = NULL; |
| 240 | eventMask = 0; |
| 241 | } |
| 242 | |
| 243 | |
| 244 | VirtualDrawable::~VirtualDrawable(void) |