VirtualBox

Changeset 3715 in vbox for trunk/src


Ignore:
Timestamp:
Jul 19, 2007 11:13:19 AM (18 years ago)
Author:
vboxsync
Message:

Fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/gllindrv.cpp

    r3713 r3715  
    171171int vboxglEnableOpenGL(PVBOXOGLCTX pClient)
    172172{
    173     Display *dpy;
    174173    static int attribs[] = {
    175174        GLX_DRAWABLE_TYPE, GLX_WINDOW_BIT,
     
    194193        pClient->enable.fbConfig = pClient->glxChooseFBConfig(pClient->dpy, screen_num, attribs, &returnedFBConfigs);
    195194        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]);
    197196        /* Create Window */
    198197        attr.background_pixel = 0;
    199198        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);
    201200        attr.event_mask = StructureNotifyMask | ExposureMask;
    202201        mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette