Changeset 3729 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Jul 20, 2007 10:11:37 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23033
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/gllindrv.cpp
r3716 r3729 42 42 return (XIO_handler(d)); 43 43 }*/ 44 45 /* X11 server connection for all OpenGL clients. 46 * Neccessary because Mesa and DRI cannot handle more than one 47 * connection per thread (only hardware acceleration, software rendering 48 * runs fine with more than one connection). 49 * Would crash in vboxglDisconnect if on every vboxglConnect 50 * a new Display is created */ 51 Display *glXDisplay = NULL; 44 52 45 53 static Bool WaitForNotify( Display *dpy, XEvent *event, XPointer arg ) { … … 158 166 Log(("vboxglGlobalInit\n")); 159 167 168 glXDisplay = XOpenDisplay(NULL); 169 160 170 /*vboxInitOpenGLExtensions();*/ 161 171 return VINF_SUCCESS; … … 252 262 pClient->xWindow = 0; 253 263 254 pClient->dpy = XOpenDisplay(NULL);264 pClient->dpy = glXDisplay; 255 265 256 266 if (pClient->dpy) { … … 298 308 299 309 #ifdef VBOX_OGL_DEBUG_WINDOW_OUTPUT 300 if (pClient->dpy) { 301 if (pClient->xWindow != 0) { 302 XUnmapWindow(pClient->dpy, pClient->xWindow); 303 XDestroyWindow(pClient->dpy, pClient->xWindow); 304 } 305 if (pClient->PixelFormatToFBConfigMapper) { 306 XFree(pClient->PixelFormatToFBConfigMapper); 307 } 308 XCloseDisplay(pClient->dpy); 309 } 310 if (pClient->xWindow != 0) { 311 XUnmapWindow(pClient->dpy, pClient->xWindow); 312 XDestroyWindow(pClient->dpy, pClient->xWindow); 313 } 314 if (pClient->PixelFormatToFBConfigMapper) { 315 XFree(pClient->PixelFormatToFBConfigMapper); 316 } 317 310 318 pClient->dpy = NULL; 311 319 pClient->xWindow = 0;
Note:
See TracChangeset
for help on using the changeset viewer.