- Timestamp:
- Jul 19, 2007 11:13:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/gllindrv.cpp
r3713 r3715 171 171 int vboxglEnableOpenGL(PVBOXOGLCTX pClient) 172 172 { 173 Display *dpy;174 173 static int attribs[] = { 175 174 GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT, … … 194 193 pClient->enable.fbConfig = pClient->glxChooseFBConfig(pClient->dpy, screen_num, attribs, &returnedFBConfigs); 195 194 Log(("vboxglGetString: returned FBConfigs: %d\n", returnedFBConfigs)); 196 pClient->enable.visinfo = pClient->glxGetVisualFromFBConfig(pClient-> dpy, pClient->enable.fbConfig[0]);195 pClient->enable.visinfo = pClient->glxGetVisualFromFBConfig(pClient->enable.dpy, pClient->enable.fbConfig[0]); 197 196 /* Create Window */ 198 197 attr.background_pixel = 0; 199 198 attr.border_pixel = 0; 200 attr.colormap = XCreateColormap(pClient->dpy, RootWindow( dpy, screen_num), pClient->enable.visinfo->visual, AllocNone);199 attr.colormap = XCreateColormap(pClient->dpy, RootWindow(pClient->enable.dpy, screen_num), pClient->enable.visinfo->visual, AllocNone); 201 200 attr.event_mask = StructureNotifyMask | ExposureMask; 202 201 mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
Note:
See TracChangeset
for help on using the changeset viewer.